Skip to content

Commit 1760c3a

Browse files
ci FIX
1 parent 509ce60 commit 1760c3a

File tree

2 files changed

+18
-39
lines changed

2 files changed

+18
-39
lines changed

.github/workflows/git_publish.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/npm_publish.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
name: Publish Package to npmjs
1+
# .github/workflows/release-package.yml
2+
name: on release
3+
24
on:
3-
release:
4-
types: [published]
5+
release:
6+
types: [created]
7+
58
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
12-
with:
13-
node-version: '18.x'
14-
registry-url: 'https://registry.npmjs.org'
15-
- run: npm install
16-
- run: npm publish
17-
env:
18-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9+
publish-github-registry:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
registry-url: https://npm.pkg.github.com/
17+
- run: yarn install
18+
- run: yarn publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)