File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616 strategy :
1717 matrix :
18- node-version : [20 .x, 22 .x]
18+ node-version : [22 .x, 24 .x]
1919 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2020
2121 steps :
3131 - run : npm run build
3232 - run : npm run test
3333 - name : Publish to coveralls.io
34- if : matrix.node-version == '20 .x'
34+ if : matrix.node-version == '22 .x'
3535 uses : coverallsapp/github-action@v2
3636 with :
3737 github-token : ${{ github.token }}
Original file line number Diff line number Diff line change 88 types : [created]
99
1010permissions :
11- id-token : write # Required for OIDC
11+ id-token : write # Required for OIDC
1212 contents : read
1313
1414jobs :
@@ -18,22 +18,22 @@ jobs:
1818 - uses : actions/checkout@v4
1919 - uses : actions/setup-node@v4
2020 with :
21- node-version : ' 20 '
21+ node-version : ' 22 '
2222 cache : ' npm'
2323 registry-url : https://registry.npmjs.org/
24-
24+
2525 # Ensure npm 11.5.1 or later is installed in order to npm OIDC to work
2626 - name : Update npm
2727 run : npm install -g npm@latest
28-
28+
2929 - run : npm ci
3030 - run : npm run build
3131 - run : echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
3232 - run : echo ${VERSION}
3333 - name : Define npm tag
3434 run : |
35- if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
36- echo ${NPM_TAG}
35+ if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
36+ echo ${NPM_TAG}
3737
3838 - name : Version the package
3939 run : npm version ${VERSION} --no-git-tag-version --save --verbose
4242 - name : Publish the package
4343 run : npm publish --tag ${NPM_TAG}
4444 working-directory : dist
45- # env:
46- # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45+ # env:
46+ # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments