Skip to content

Eleventy RSS v3.0.0-alpha.1 #3

Eleventy RSS v3.0.0-alpha.1

Eleventy RSS v3.0.0-alpha.1 #3

Workflow file for this run

name: Publish Release to npm
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
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 test
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_PUBLISH_TAG: ${{ contains(github.event.release.tag_name, '-alpha.') && 'alpha' && ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || 'latest' }}

Check failure on line 23 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Publish Release to npm

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 23, Col: 28): Unexpected symbol: '${{'. Located at position 66 within expression: contains(github.event.release.tag_name, '-alpha.') && 'alpha' && ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || 'latest'