Skip to content

release/@tutods/biome-config/0.13.3 #150

release/@tutods/biome-config/0.13.3

release/@tutods/biome-config/0.13.3 #150

Workflow file for this run

name: Publish
on:
workflow_dispatch:
release:
types:
- created
# TODO: check
permissions:
contents: read
id-token: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
jobs:
publish:
name: 📤 Publish package versions
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🦖 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: 🔻 Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: 🔖 Get Version
run: |
TAG_NAME=${{github.event.release.tag_name}}
echo "PACKAGE_NAME=$(echo $TAG_NAME | cut -d "@" -f 1)" >> $GITHUB_ENV
echo "APP_VERSION=$(echo $TAG_NAME | cut -d "@" -f 2)" >> $GITHUB_ENV
- name: 🏃 Run Node and NPM setup
uses: ./.github/actions/setup-project
- name: 📤 Publish packages
run: |
git config --local user.name "github-actions"
git config --local user.email "github-actions@github.com"
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npx nx release publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
NPM_CONFIG_PROVENANCE: true