Skip to content

bad copy paste GITHUB_REF_NAME #9

bad copy paste GITHUB_REF_NAME

bad copy paste GITHUB_REF_NAME #9

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "RELEASE=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"
- 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: ${{ env.RELEASE }}
- run: echo ${{ env.RELEASE }}
- run: yarn
- run: yarn build
- run: yarn publish --new-version ${{ env.RELEASE }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}