Skip to content

fixup! ci: add semantic-release #3

fixup! ci: add semantic-release

fixup! ci: add semantic-release #3

Workflow file for this run

name: Package and Release
on:
push:
branches:
- versioning-0 # TODO: use main
permissions:
contents: read # for checkout
jobs:
lint-and-test:
uses: ./.github/workflows/lint-and-test.yml

Check failure on line 10 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yaml" -> "./.github/workflows/lint-and-test.yml" (source branch with sha:1d52c79cac1a664151e890a778c123950ff341cf) : workflow is not reusable as it is missing a `on.workflow_call` trigger
release:
name: Publish Library
runs-on: large-8-core-32gb-22-04
needs: [lint-and-test]
environment: deploy #!! DO NOT CHANGE THIS LINE !! #
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
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # download tags, see https://github.com/actions/checkout/issues/100
- run: git config --global --add safe.directory $(realpath .)
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Semantic Release
run: |
npm install semantic-release
npx semantic-release --dry-run # TODO: remove dry-run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} #TODO: add CRATES_TOKEN