Skip to content

Merge pull request #4 from trycourier/bryan/refname #3

Merge pull request #4 from trycourier/bryan/refname

Merge pull request #4 from trycourier/bryan/refname #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
registry-url: "https://registry.npmjs.org"
node-version: "20.14.0"
scope: "@trycourier"
always-auth: true
- uses: MathieuSoysal/[email protected]
with:
file: source/version.ts
old-string: local
new-string: ${{ GITHUB_REF_NAME#v }}

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

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 23, Col: 23): Unexpected symbol: 'GITHUB_REF_NAME#v'. Located at position 1 within expression: GITHUB_REF_NAME#v
- run: yarn
- run: yarn build
- run: yarn publish --new-version ${GITHUB_REF_NAME#v}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}