Skip to content

Update node.js.yml

Update node.js.yml #5

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: produce
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: setup haxe
run: mkdir tools
- run: wget https://github.com/HaxeFoundation/haxe/releases/download/4.3.2/haxe-4.3.2-linux64.tar.gz -O ./tools/haxe.tar.gz
- run: tar xzvf ./tools/haxe.tar.gz -C ./tools
- run: mv ./tools/haxe_* ./tools/haxe
- run: echo "$(cd $1; pwd)"
- run: echo "$(cd $1; pwd)" >> $GITHUB_PATH
- run: export PATH=$PATH:$(cd $1; pwd)
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn run build --if-present
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: bin # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: bin/**
# The desired behavior if no files are found using the provided path.
retention-days: 60 # optional