Skip to content

Commit 6c84338

Browse files
Updated yml
1 parent c05d24c commit 6c84338

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,34 @@ on:
77
release:
88
types: [created]
99

10-
permissions:
11-
id-token: write # Required for OIDC
12-
contents: read
13-
1410
jobs:
1511
build:
1612
runs-on: ubuntu-latest
1713
if: github.repository_owner == 'lambdatest'
1814
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
2117
with:
22-
node-version: 20
18+
node-version: 16
2319
- run: npm ci
2420

2521
publish-npm:
2622
needs: build
2723
runs-on: ubuntu-latest
2824
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-node@v4
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v2
3127
with:
32-
node-version: 20
28+
node-version: 16
3329
registry-url: https://registry.npmjs.org/
3430
- name: PUBLISHING Cypress CLI Version ${{ github.event.release.tag_name }}
3531
run: |
36-
npm install -g npm@latest
3732
npm ci
3833
npm publish --access public
3934
echo "CHECKING on NPM REPO, whether new version starts reflecting there or not:";
4035
npm view lambdatest-cypress-cli versions --json
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4138
- name: Send custom JSON data to Slack workflow
4239
id: slack
4340
uses: slackapi/[email protected]

0 commit comments

Comments
 (0)