Skip to content

Commit

Permalink
Update Deps + Attestation
Browse files Browse the repository at this point in the history
Enable GitHub actions attestation of the published package to increase the trust state of the package.
Update deps to use the latest LTS version of node available.
  • Loading branch information
elliot-huffman authored Jun 4, 2024
1 parent f002384 commit d142983
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ jobs:
if: "!startsWith(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v3.5.1
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm test
- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"
- run: npm version ${{ github.event.inputs.updateType }} -m "[ci skip] %s"
- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push --follow-tags
Expand Down

0 comments on commit d142983

Please sign in to comment.