File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -67,21 +67,21 @@ jobs:
6767
6868 publish :
6969 runs-on : ubuntu-latest
70- needs : test
7170
7271 steps :
73- - name : Checkout repository
74- uses : actions/checkout@v2
72+ - name : Checkout code
73+ uses : actions/checkout@v2
7574
76- - name : Setup Node.js
77- uses : actions/setup-node@v3
78- with :
79- node-version : ' 18'
75+ - name : Setup Node.js
76+ uses : actions/setup-node@v3
77+ with :
78+ node-version : ' 18'
8079
81- - name : Publish to npm
82- run : |
83- echo "@engineering:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/" >> .npmrc
84- echo "${CI_API_V4_URL#https?}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}" >> .npmrc
85- echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}" >> .npmrc
86- npm publish
80+ - name : Install dependencies
81+ run : npm install
82+
83+ - name : Publish to npm
84+ run : npm publish --access public
85+ env :
86+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
8787
You can’t perform that action at this time.
0 commit comments