astro-ghostcms/.github/workflows/changeset-main.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2024-02-14 13:17:01 +00:00
name: "Changesets: Publish Packages from main"
on:
push:
branches:
- main
2024-02-14 11:41:33 +00:00
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
2024-02-14 11:41:33 +00:00
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
2024-02-14 11:41:33 +00:00
- name: checkout code repository
2024-02-14 11:43:40 +00:00
uses: actions/checkout@v4
with:
2024-02-14 11:41:33 +00:00
fetch-depth: 0
- name: setup node.js
2024-02-14 11:43:40 +00:00
uses: actions/setup-node@v4
2024-02-14 11:41:33 +00:00
with:
2024-02-14 11:43:40 +00:00
node-version: 18
2024-02-14 11:41:33 +00:00
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
2024-02-14 14:32:06 +00:00
run: pnpm install --no-frozen-lockfile
2024-02-14 11:41:33 +00:00
- name: create and publish versions
2024-02-14 17:54:59 +00:00
uses: matthiesenxyz/changeset-action@main
with:
2024-02-14 11:41:33 +00:00
version: pnpm ci:version
commit: "chore: update versions"
title: "chore: update versions"
2024-02-14 13:17:01 +00:00
publish: pnpm ci:publish
env:
2024-02-14 14:32:06 +00:00
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}