Skip to content

Merge pull request #3 from trycourier/bryan/node-version-action #2

Merge pull request #3 from trycourier/bryan/node-version-action

Merge pull request #3 from trycourier/bryan/node-version-action #2

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