Skip to content

feat: initial public release #21

feat: initial public release

feat: initial public release #21

name: Release Dry Run

Check failure on line 1 in .github/workflows/release-dry-run.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-dry-run.yml

Invalid workflow file

(Line: 56, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.NPM_TOKEN != '' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)
on:
workflow_dispatch:
pull_request:
branches:
- main
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
concurrency:
group: release-dry-run-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
dry-run:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: npm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Format check
run: npm run format:check
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm run test
- name: Build package
run: npm run build
- name: Validate package contents
run: npm pack --dry-run
- name: Validate semantic-release dry-run
if: ${{ secrets.NPM_TOKEN != '' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --dry-run --no-ci