Skip to content

Commit 7802a8b

Browse files
Merge pull request #458 from abhishek-lambda/dev
Fix: Add OIDC worfklow
2 parents a9afb21 + 9e29068 commit 7802a8b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/npm-publish.yml

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

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest
1317
if: github.repository_owner == 'lambdatest'
1418
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v2
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
1721
with:
18-
node-version: 16
22+
node-version: 20
1923
- run: npm ci
2024

2125
publish-npm:
2226
needs: build
2327
runs-on: ubuntu-latest
2428
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v2
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-node@v4
2731
with:
28-
node-version: 16
32+
node-version: 20
2933
registry-url: https://registry.npmjs.org/
3034
- name: PUBLISHING Cypress CLI Version ${{ github.event.release.tag_name }}
3135
run: |
36+
npm install -g npm@latest
3237
npm ci
3338
npm publish --access public
3439
echo "CHECKING on NPM REPO, whether new version starts reflecting there or not:";
3540
npm view lambdatest-cypress-cli versions --json
36-
env:
37-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3841
- name: Send custom JSON data to Slack workflow
3942
id: slack
4043
uses: slackapi/[email protected]

0 commit comments

Comments
 (0)