Skip to content

Pre-release test 2

Pre-release test 2 #3

Workflow file for this run

name: Canary Release 🚚
on:
release:
types:
- prereleased
permissions: {}
jobs:
release:
name: Version & Publish
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up Node.js 18.x
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Create Beta Branch
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git checkout -b canary
git push --force origin canary --set-upstream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Version Package
run: yarn version --new-version ${{ github.event.release.tag_name }}
- name: Push package.json and tags
run: |
git push --follow-tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to npm
run: yarn build && npm publish --provenance --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}