Skip to content

Commit

Permalink
Merge pull request #65 from github/dg/maintenance
Browse files Browse the repository at this point in the history
Actions/Node Maintenance
  • Loading branch information
dgreif authored Oct 18, 2024
2 parents 3ab8e25 + 5133ab3 commit 78ce055
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 62 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,6 +17,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
- run: npm install
- run: npm run build
- run: npm test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -21,6 +22,6 @@ jobs:
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- run: npm whoami; npm --ignore-scripts publish
- run: npm whoami; npm --ignore-scripts publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11.0
22
81 changes: 21 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 78ce055

Please sign in to comment.