This repository was archived by the owner on Dec 12, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ workflow_dispatch :
7
+ jobs :
8
+ publish-to-npm :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v1
13
+ - name : Use Node.js And Setup .npmrc
14
+ uses : actions/setup-node@v1
15
+ with :
16
+ node-version : ' 12.x'
17
+ registry-url : ' https://registry.npmjs.org'
18
+ scope : ' @neos21'
19
+ always-auth : true
20
+ env :
21
+ NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
22
+ - name : Can npm Publish
23
+ run : |
24
+ npm install can-npm-publish
25
+ npx can-npm-publish --verbose
26
+ env :
27
+ NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
28
+ # npm install
29
+ # npm run build
30
+ - name : Publish
31
+ run : npm publish --access=public
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
34
+ publish-to-gpr :
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v1
39
+ - name : Use Node.js And Setup .npmrc
40
+ uses : actions/setup-node@v1
41
+ with :
42
+ node-version : ' 12.x'
43
+ registry-url : ' https://npm.pkg.github.com'
44
+ scope : ' @neos21'
45
+ always-auth : true
46
+ env :
47
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
+ - name : Can npm Publish
49
+ run : |
50
+ npm install can-npm-publish
51
+ npx can-npm-publish --verbose
52
+ env :
53
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
+ # npm install
55
+ # npm run build
56
+ - name : Publish
57
+ run : npm publish
58
+ env :
59
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments