Skip to content

adding env prefix

adding env prefix #5

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:
- run: export RELEASE=${GITHUB_REF_NAME#v}
- 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: yarn
- run: yarn build
- run: yarn publish --new-version $RELEASE
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}