Skip to content

fix: publish-npm action #4

fix: publish-npm action

fix: publish-npm action #4

name: 🔧 PR labeled

Check failure on line 1 in .github/workflows/pull-request-labeled.yaml

View workflow run for this annotation

GitHub Actions / 🔧 PR labeled

Invalid workflow file

The workflow is not valid. .github/workflows/pull-request-labeled.yaml (Line: 3, Col: 11): Unexpected symbol: '${{'. Located at position 72 within expression: github.event.label.name == ':wrench: publish-npm' && 'publish-npm'|| ${{ github.event.label.name
run-name: |
🔧 Deploy ${{ github.head_ref }} (${{
github.event.label.name == ':wrench: publish-npm' && 'publish-npm'||
${{ github.event.label.name }}
}}) by @${{ github.actor }}
on:
pull_request:
types:
- labeled
concurrency:
group: ${{ github.workflow }}-${{ format('{0}-{1}', github.head_ref, github.event.label.name) }}
cancel-in-progress: true
jobs:
# NOTE: The following job will be triggered manually by adding the specified label `:wrench: publish-npm` in Pull-Request.
publish-to-npm:
if: |
github.event.label.name == ':wrench: publish-npm'
uses: ./.github/workflows/npm-publish.yaml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}