Skip to content

🚧 Workflows have changed (#307) #259

🚧 Workflows have changed (#307)

🚧 Workflows have changed (#307) #259

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/checkout@v4
with:
token: ${{ secrets.OCTOKITBOT_PAT }}
- uses: actions/setup-node@v4
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run build
- run: rm .gitignore
- run: npx semantic-release --debug
env:
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
- run: >-
git push
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v2.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}