Skip to content

Commit 6ea2416

Browse files
committed
ci: update npm publish config
1 parent cdcc14b commit 6ea2416

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Upload
3131
uses: actions/upload-artifact@v2
3232
with:
33-
name: package
33+
name: package-pr-${{github.event.number}}
3434
path: "*.tgz"
3535

3636
publish:
@@ -42,13 +42,13 @@ jobs:
4242
- name: Upload
4343
uses: actions/download-artifact@v2
4444
with:
45-
name: package
45+
name: package-pr-${{github.event.number}}
4646
- uses: actions/setup-node@v1
4747
with:
4848
node-version: ${{ env.NODE_VERSION }}
4949
registry-url: https://npm.pkg.github.com/
5050
scope: "@manekinekko"
5151
- run: echo "registry=https://npm.pkg.github.com/@manekinekko" >> .npmrc
52-
- run: npm publish $(ls *.tgz)
52+
- run: npm publish $(ls *.tgz) --tag=pr-${{github.event.number}} --access=public
5353
env:
5454
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.npmignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ tslint.json
55
.prettierrc.json
66
.prettierignore
77
.env
8-
.commitlint.config.js
9-
logs
8+
.commitlintrc.json
9+
logs
10+
jest.config.js
11+
.release-it.json
12+
.github

0 commit comments

Comments
 (0)