Merge pull request #4 from Fa-haxiki/Fa-haxiki-patch-4 #1
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: Public Npm | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
name: 'publish npm' | |
environment: npm | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- name: Install and Build | |
run: | | |
npm install | |
npm run build | |
- name: 'Publish to the npm registry' | |
uses: primer/[email protected] | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
with: | |
default_branch: 'main' |