Skip to content

Merge branch 'develop' of https://github.com/Bigtablet/bigtablet-fron… #7

Merge branch 'develop' of https://github.com/Bigtablet/bigtablet-fron…

Merge branch 'develop' of https://github.com/Bigtablet/bigtablet-fron… #7

Workflow file for this run

name: Publish to npm

Check failure on line 1 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

(Line: 32, Col: 14): Unexpected symbol: 'tag#v'. Located at position 19 within expression: steps.tag.outputs.tag#v
on:
workflow_run:
workflows: ["Auto tag on release merge"]
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- name: Get latest tag
id: tag
run: |
TAG=$(git describe --tags --abbrev=0)
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Set package.json version
run: |
VERSION=${{ steps.tag.outputs.tag#v }}
npm version $VERSION --no-git-tag-version
- name: Install dependencies
run: npm install
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}