Skip to content

[StepSecurity] ci: Harden GitHub Actions (#90) #63

[StepSecurity] ci: Harden GitHub Actions (#90)

[StepSecurity] ci: Harden GitHub Actions (#90) #63

Workflow file for this run

name: Changesets
on:
workflow_dispatch:
push:
branches:
- main
permissions:
pull-requests: write
jobs:
changesets:
name: Changesets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
filter: blob:none
# We clone using a deploy key so that this workflow can
# push tags and trigger the release workflow, which GHA
# tokens don't allow.
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
- run: npm ci
if: ${{ github.event_name != 'schedule' }}
- run: npm run build
- run: npm test
- uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
publish: npx changeset tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}