Merge pull request #47 from LucasWerey/fix/20 #73
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: Publish NPM Package | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install Dependencies | |
run: yarn install | |
- name: Build Package | |
run: yarn build | |
- name: Publish to NPM | |
run: | | |
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.PUBLISH }} | |
npm publish |