Version 1.0.7 #2
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 GitHub Package | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
ghpkg: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
# Setup .npmrc file to publish to npm | |
- name: Update package.json | |
run: | | |
rm package.json | |
mv package.github.json package.json | |
- name: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@noclocks' | |
# - name: ci | |
# run: npm ci | |
- name: publish-gh | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PKG_TOKEN }} |