Skip to content

Commit 032281b

Browse files
authored
ci(): configure trusted publishing (#146)
1 parent a0a2767 commit 032281b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
contents: write # to be able to publish a GitHub release
1313
issues: write # to be able to comment on released issues
1414
pull-requests: write # to be able to comment on released pull requests
15+
id-token: write # to enable OIDC for npm trusted publishing
1516
steps:
1617
- name: Checkout ✅
1718
uses: actions/checkout@v4
@@ -21,13 +22,13 @@ jobs:
2122
- name: Setup Node.js 🔧
2223
uses: actions/setup-node@v4
2324
with:
24-
node-version: 'lts/*'
25+
node-version: '24'
26+
registry-url: 'https://registry.npmjs.org'
2527
- name: Install dependencies 🛠️
2628
run: npm ci --ignore-scripts
2729
- name: Build 📦
2830
run: npm run build:lib
2931
- name: Release 🚀
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3334
run: cd dist/schedule-x/angular && npx semantic-release

projects/schedule-x/angular/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"publishConfig": {
55
"access": "public"
66
},
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/schedule-x/angular.git"
10+
},
711
"author": {
812
"name": "Tom Österlund",
913
"email": "tom@schedule-x.dev"

0 commit comments

Comments
 (0)