Skip to content

ci(#23): fix 401 Unauthorized error when publishing to GitHub Packages #20

ci(#23): fix 401 Unauthorized error when publishing to GitHub Packages

ci(#23): fix 401 Unauthorized error when publishing to GitHub Packages #20

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
packages: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Environment
uses: ./.github/actions/setup
with:
registry-url: https://npm.pkg.github.com
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_REGISTRY: https://npm.pkg.github.com
run: npx semantic-release