v4.4.3 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
permissions: | |
contents: read | |
id-token: write | |
on: | |
push: | |
tags: v* | |
jobs: | |
release: | |
name: Release workflow | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "latest" | |
registry-url: "https://registry.npmjs.org/" | |
- name: Install | |
run: yarn --frozen-lockfile --non-interactive | |
- name: Build | |
run: yarn build | |
env: | |
NODE_ENV: production | |
- name: Test | |
run: yarn test | |
- name: Publish latest | |
if: "!contains(github.ref, '-')" | |
run: npm publish --tag latest --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- name: Publish next | |
if: contains(github.ref, '-') | |
run: npm publish --tag next --provenance | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- name: Remove next tag | |
if: "!contains(github.ref, '-')" | |
run: npm dist-tag rm thelounge next || true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |