Skip to content

Merge pull request #56 from zalando/patch/fix-npm-auth #32

Merge pull request #56 from zalando/patch/fix-npm-auth

Merge pull request #56 from zalando/patch/fix-npm-auth #32

Workflow file for this run

# Release workflow powered by semantic-release.
# Only publishes when conventional commits since last release warrant a release.
name: Release
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
environment: npm
permissions:
id-token: write
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22.14.x
registry-url: https://registry.npmjs.org/
always-auth: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Enable Corepack (Yarn 4)
run: corepack enable
- run: yarn install --immutable
- run: yarn tsc
- run: yarn build
- name: Run semantic-release
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}