Merge pull request #553 from karolina-siemieniuk-morawska/revert-548-… #85
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: Node.js Package | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
include: | |
- python: python2 | |
pip: pip | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install python dependencies | |
run: | | |
${{ matrix.pip }} install --user --upgrade pip | |
- name: Install node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '10.14.0' | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn install | |
- run: yarn build | |
- if: ${{ github.event_name == 'release' }} | |
run: yarn copy | |
- if: ${{ github.event_name == 'release' }} | |
run: > | |
cd dist; | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |