-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (41 loc) · 1.16 KB
/
publish-npm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish NPM package
on:
release:
types: [ created ]
env:
NODE_SCOPE: '@working-group-two'
jobs:
publish-package:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Match Github tag to package version
uses: geritol/[email protected]
with:
TAG_PREFIX: v
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16.x'
# registry-url: 'https://npm.pkg.github.com'
scope: ${{ env.NODE_SCOPE }}
- name: Publish to Github Registry
uses: JS-DevTools/npm-publish@v1
with:
registry: 'https://npm.pkg.github.com'
token: ${{ secrets.GITHUB_TOKEN }}
access: public
dry-run: false
check-version: true
- name: Publish to NPMJS
uses: JS-DevTools/npm-publish@v1
with:
registry: 'https://registry.npmjs.org'
token: ${{ secrets.NPMJS_TOKEN }}
access: public
dry-run: false
check-version: true