fix: more self vs this shenanigans #20
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
on: [push] | |
name: Build and publish to NPM | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: install dependencies | |
run: npm install --include-dev | |
- name: create builds | |
run: npm run build | |
- name: Publish to NPM | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: npm publish || true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |