Skip to content

Commit 041aa97

Browse files
authored
Merge pull request #17 from gracepark/patch-1
Update publish.yml to add id-token permission
2 parents c757cb9 + 9ef7c84 commit 041aa97

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ permissions:
77

88
jobs:
99
build:
10-
runs-on: macos-latest
10+
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Use Node.js 20.x
12+
- uses: actions/checkout@v6
13+
- name: Use Node.js 24.x
1414
uses: actions/setup-node@v6
1515
with:
16-
node-version: 20.x
16+
node-version: 24.x
1717
- name: npm install, build, and test
1818
run: |
1919
npm install

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ on:
66

77
permissions:
88
contents: read
9+
id-token: write
910

1011
jobs:
1112
publish-npm:
1213
runs-on: ubuntu-latest
1314
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
1617
with:
17-
node-version: 20
18+
node-version: 24
1819
registry-url: https://registry.npmjs.org/
1920
cache: npm
2021
- run: npm ci
2122
- run: npm test
2223
- run: npm version ${TAG_NAME} --git-tag-version=false
2324
env:
2425
TAG_NAME: ${{ github.event.release.tag_name }}
25-
- run: npm whoami; npm --ignore-scripts publish
26-
env:
27-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
26+
- run: npm --ignore-scripts publish --provenance

karma.config.cjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ module.exports = function (config) {
1111
port: 9876,
1212
colors: true,
1313
logLevel: config.LOG_INFO,
14-
browsers: ['ChromeHeadless'],
14+
browsers: ['ChromeHeadlessNoSandbox'],
15+
customLaunchers: {
16+
ChromeHeadlessNoSandbox: {
17+
base: 'ChromeHeadless',
18+
flags: ['--no-sandbox']
19+
}
20+
},
1521
autoWatch: false,
1622
singleRun: true,
1723
concurrency: Infinity

0 commit comments

Comments
 (0)