Skip to content

fix: job id

fix: job id #2

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
#
name: "Node build, release & publish"
on:
workflow_call
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm build
- run: npm pack
- name: Get version
id: get-version
run: |
VERSION=$(jq -r '.version' package.json)
TITLE="Release v$VERSION" # Customize title format if needed
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "title=$TITLE" >> $GITHUB_OUTPUT
- name: Peek title
run: |
echo "Title is"
echo ${{steps.get-version.outputs.title}}
- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
automatic_release_tag: stable
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
title: ${{steps.get-version.outputs.title}}
files: *.tar

Check failure on line 39 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}