Skip to content

update github workflows #1

update github workflows

update github workflows #1

Workflow file for this run

name: Publish
on:
release:
types: [ published ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: npm install & set Version
run: |
npm ci
npm config set git-tag-version false
npm version ${{ github.event.release.tag_name }}
ß

Check failure on line 26 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 26
- name: build & pack
run: |
npm run build --if-present
npm pack
- uses: JS-DevTools/npm-publish@v3
if: "!github.event.release.prerelease"
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: '${{ github.event.release.upload_url }}'
asset_path: ./${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tgz
asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tgz
asset_content_type: application/zip