change publishConfig.registry #5
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 to GitHub Package Registry | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
registry-url: https://npm.pkg.github.com/ | |
node-version: 16.x | |
scope: '@nclslbrn' | |
- name: npm install, build, and test | |
run: | | |
npm install | |
npm run build --if-present | |
npm test | |
- name: publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
run: | | |
npm run deploy |