Skip to content

Use reusable workflows #73

Use reusable workflows

Use reusable workflows #73

name: Release
on:
release:
types:
- published
jobs:
deploy:
uses: croct-tech/github-workflows/.github/workflows/general/publish-npm-package.yml@unify-workflows

Check failure on line 10 in .github/workflows/deploy-published-releases.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-published-releases.yaml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
node-version: "23"
publish-access: "public"
pre-build-script: >-
npm run graphql-codegen &&
sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json
prepare-script: >-
cp package.json LICENSE README.md build/
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}