Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9fd7d14

Browse files
Merge pull request #125 from kobenguyent/feat-npm-release-workflow
feat: auto release workflows
2 parents 1292273 + c95e655 commit 9fd7d14

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎.github/workflows/npm-publish.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish NPM package
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
12+
jobs:
13+
publish-npm:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 18
20+
registry-url: https://registry.npmjs.org/
21+
- run: npm i
22+
- run: npx semantic-release
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
25+
GH_TOKEN: ${{secrets.GH_TOKEN}}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /