Skip to content

Release

Release #7

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to release (e.g. v0.0.0-test)'
required: true
permissions:
contents: write
id-token: write
jobs:
test:
uses: ./.github/workflows/tests.yml

Check failure on line 19 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

error parsing called workflow ".github/workflows/release.yml" -> "./.github/workflows/tests.yml" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
publish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Ensure tag exists (manual run)
if: github.event_name == 'workflow_dispatch'
run: |
git tag ${{ inputs.tag }}
git push origin ${{ inputs.tag }}
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag || github.ref_name }}
generate_release_notes: true
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}