Skip to content

Instantly share code, notes, and snippets.

@AJpon
Last active November 3, 2023 08:06
Show Gist options
  • Save AJpon/518210e0db422da134937f1ec936a9b6 to your computer and use it in GitHub Desktop.
Save AJpon/518210e0db422da134937f1ec936a9b6 to your computer and use it in GitHub Desktop.
UPMパッケージをnpmに登録するGitHub Actions
name: UPM on npsjs.com
on:
workflow_dispatch:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'
- run: npm publish
working-directory: <PATH_TO_PACKAGE_ROOT>
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@AJpon
Copy link
Author

AJpon commented Nov 3, 2023

working-directoryがRootディレクトリの場合はworking-directoryセクション自体不要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment