Skip to content

Fix release.yaml

Fix release.yaml #15

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
repository-projects: write
steps:
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
private-key: ${{ secrets.APP_PRIVATE_KEY }}
app-id: ${{ secrets.APP_ID }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
- name: Install Dependencies
run: pnpm install
- name: Build Packages
run: pnpm build
- name: publint
run: pnpm lint:package
- name: Create Release PR or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset version
publish: pnpm run publish
commit: "ci: release"
title: "ci: release"
env:
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true