Skip to content

Commit 979616e

Browse files
authored
Merge pull request #143 from Typeform/feat/TU-33147
feat(TU-33147): Migrate to OIDC Authentication
2 parents 084ec4e + 07f742d commit 979616e

File tree

5 files changed

+1034
-881
lines changed

5 files changed

+1034
-881
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
node_version:
14-
- 18 # end of life 2025-04-30
15-
- 20 # end of life 2025-04-30 # please update "Upload coverage file" step if you change this
14+
- 22 # end of life 2027-04-30 # coverage file uploaded from this version
1615
name: build-lint-test - node ${{ matrix.node_version }}
1716
steps:
1817
- name: Check out Git repository
@@ -57,7 +56,6 @@ jobs:
5756
5857
- name: Upload coverage file
5958
uses: actions/upload-artifact@v4
60-
if: ${{ matrix.node_version == '20' }}
6159
with:
6260
name: coverage-report
6361
path: ./coverage/lcov.info

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ jobs:
1010
release:
1111
name: release
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
id-token: write
1316
steps:
1417
- name: Check out Git repository
1518
uses: actions/checkout@v3
1619

1720
- name: Set up Node.js
1821
uses: actions/setup-node@v3
1922
with:
20-
node-version: 20
23+
node-version: 22
2124

2225
- name: Get yarn cache
2326
uses: actions/cache@v3
@@ -35,9 +38,8 @@ jobs:
3538
- name: Build
3639
run: yarn build
3740

38-
# update registry and tokens with write access for releasing.
41+
# Configure registry for GitHub Packages
3942
- run: rm ./.npmrc
40-
- run: npm config set '//registry.npmjs.org/:_authToken' $NPM_TOKEN
4143
- run: npm config set '//npm.pkg.github.com/:_authToken' $GH_TOKEN
4244
env:
4345
GH_TOKEN: ${{ secrets.GH_TOKEN }}
@@ -46,5 +48,4 @@ jobs:
4648
if: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/beta') }}
4749
run: yarn release
4850
env:
49-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.releaserc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
2222
}
2323
}],
24-
"@semantic-release/npm",
24+
["@semantic-release/npm", {
25+
"npmPublish": true,
26+
"provenance": true
27+
}],
2528
["@semantic-release/exec", {
2629
"successCmd": "yarn publish:github"
2730
}],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@semantic-release/commit-analyzer": "^11.1.0",
6666
"@semantic-release/exec": "^6.0.3",
6767
"@semantic-release/github": "^9.2.4",
68-
"@semantic-release/npm": "^11.0.1",
68+
"@semantic-release/npm": "^13.1.1",
6969
"@typeform/eslint-config": "^6.0.3",
7070
"@types/jest": "^24.0.18",
7171
"axios-mock-adapter": "^1.22.0",

0 commit comments

Comments
 (0)