Skip to content

Commit 9832380

Browse files
npm OIDC connection (#1)
1 parent 7efd348 commit 9832380

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
release:
88
types: [created]
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
1014
jobs:
1115
publish-npm:
1216
runs-on: ubuntu-latest
@@ -17,6 +21,11 @@ jobs:
1721
node-version: '20'
1822
cache: 'npm'
1923
registry-url: https://registry.npmjs.org/
24+
25+
# Ensure npm 11.5.1 or later is installed in order to npm OIDC to work
26+
- name: Update npm
27+
run: npm install -g npm@latest
28+
2029
- run: npm ci
2130
- run: npm run build
2231
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
@@ -33,5 +42,3 @@ jobs:
3342
- name: Publish the package
3443
run: npm publish --tag ${NPM_TAG}
3544
working-directory: dist
36-
env:
37-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"keywords": ["lit", "web-component", "lit-element"],
66
"license": "SEE LICENSE IN LICENSE",
77
"author": "igc-grid-lite",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/IgniteUI/igc-grid-lite"
11+
},
812
"exports": {
913
".": "./dist/src/index.js",
1014
"./define": "./dist/src/define.js"

0 commit comments

Comments
 (0)