Merge pull request #1346 from Phala-Network/dependabot/npm_and_yarn/e… #3106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build JS Script | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-js-script: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./scripts/js | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: yarn install | |
- run: yarn build src/console.js | |
- run: yarn build src/worker-snapshot/*.js | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./scripts/js/dist |