Skip to content

Commit 091809f

Browse files
committed
refactor: adjusting token
1 parent 3a725c4 commit 091809f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/nodejs.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)