Skip to content

v1.0.3 - GitHub Packages Support #1

v1.0.3 - GitHub Packages Support

v1.0.3 - GitHub Packages Support #1

name: Publish to GitHub Packages
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
scope: '@sw6820'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}