0.0.1 #4
Workflow file for this run
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 package | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
publish-gpr: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Node.js 20.17.0 | |
uses: actions/[email protected] | |
with: | |
node-version: 20.17.0 | |
registry-url: https://npm.pkg.github.com/ | |
- name: Install dependencies | |
run: npm ci | |
- name: Build production | |
run: npm run release | |
- name: Publish package | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |