Skip to content

Merge pull request #13 from trycourier/bryan/list-templates #17

Merge pull request #13 from trycourier/bryan/list-templates

Merge pull request #13 from trycourier/bryan/list-templates #17

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: yarn install
- run: yarn build
- name: publish to npm
run: |
yarn config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN}
yarn publish --new-version ${{ env.RELEASE }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}