Skip to content

Harden Redline for open source release #16

Harden Redline for open source release

Harden Redline for open source release #16

Workflow file for this run

name: release
on:
push:
branches:
- main
concurrency:
group: release
cancel-in-progress: false
permissions:
contents: read
jobs:
release:
name: Version or Publish
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
scope: '@archastro'
- run: npm ci --no-audit --no-fund
- run: npm test
- run: npm run check:syntax
- run: npm run check:versions
- run: npm pack --dry-run
- name: Create Release PR or Publish
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1
with:
publish: npm run release
version: npm run version
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true