File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 55
55
env :
56
56
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
57
57
working-directory : ch8_packages/npm
58
+
59
+ publish-npm :
60
+ needs : publish-gpr
61
+ runs-on : ubuntu-latest
62
+ environment : NPM
63
+ permissions :
64
+ packages : write
65
+ contents : read
66
+ steps :
67
+ - uses : actions/checkout@v2
68
+ with :
69
+ fetch-depth : 0
70
+
71
+ - uses : actions/setup-node@v2
72
+ with :
73
+ node-version : 12
74
+ registry-url : https://registry.npmjs.org
75
+
76
+ - name : Install GitVersion
77
+ uses :
gittools/actions/gitversion/[email protected]
78
+ with :
79
+ versionSpec : ' 5.x'
80
+
81
+ - name : Determine Version
82
+ id : gitversion
83
+ uses :
gittools/actions/gitversion/[email protected]
84
+
85
+ - name : ' Change NPM version'
86
+
87
+ with :
88
+ version : $GITVERSION_SEMVER
89
+ package : ch8_packages/npm
90
+
91
+ - run : npm ci
92
+ working-directory : ch8_packages/npm
93
+
94
+ - run : npm publish
95
+ env :
96
+ NODE_AUTH_TOKEN : ${{secrets.NPM_PAT}}
97
+ working-directory : ch8_packages/npm
You can’t perform that action at this time.
0 commit comments