Skip to content

chore: npm install

chore: npm install #9

Workflow file for this run

name: Changesets
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
id-token: write
jobs:
release:
name: Changesets
runs-on: ubuntu-latest
env:
TURBO_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ vars.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- name: Checkout Repo
uses: actions/checkout@v6
with:
# use app-token to checkout repo
# will ensure pushes triggers workflows
token: ${{ steps.app-token.outputs.token }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- name: Install Dependencies
run: npm ci
- name: Setup GitHub Packages
uses: actions/setup-node@v6
with:
registry-url: https://npm.pkg.github.com
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf #v1.7.0
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
commit: "chore: version packages"
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}