Skip to content

Merge pull request #183 from gsoft-inc/feature/release_2024_11_19 #201

Merge pull request #183 from gsoft-inc/feature/release_2024_11_19

Merge pull request #183 from gsoft-inc/feature/release_2024_11_19 #201

Workflow file for this run

name: Changeset
on:
push:
branches: ["master", "master-esm"]
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write # required for provenance https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
contents: write
pull-requests: write
steps:
- name: Checkout Commit
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Cache pnpm store
uses: actions/cache@v4
id: cache-dependencies
with:
path: |
node_modules
~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install pnpm
run: |
corepack enable
pnpm install --frozen-lockfile
- name: Create release Pull Request or publish to NPM
id: changesets
uses: changesets/action@v1
with:
commit: "ci(changesets): version packages"
title: "Changeset: New Version"
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
env:
NPM_TOKEN: ${{ secrets.WORKLEAP_NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}