Skip to content

ci(action): update actions/checkout action to v5 (#423) #400

ci(action): update actions/checkout action to v5 (#423)

ci(action): update actions/checkout action to v5 (#423) #400

Workflow file for this run

name: Release
"on":
push:
branches:
- main
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.OCTOKIT_APP_ID }}
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
owner: octokit
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/setup-node@v5
with:
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}