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

39 lines
1006 B
YAML
Raw Normal View History

2024-02-14 13:17:01 +00:00
name: "Changesets: Publish Packages from main"
on:
push:
branches:
- main
2024-03-05 06:18:10 +00:00
permissions:
pull-requests: write
contents: write
2024-02-14 11:41:33 +00:00
env:
CI: true
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-03-05 06:18:10 +00:00
node-version: 20
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: install dependencies
2024-02-20 12:40:31 +00:00
run: pnpm install
2024-02-14 11:41:33 +00:00
- name: create and publish versions
2024-03-05 06:46:49 +00:00
uses: matthiesenxyz/changeset@v1
with:
2024-02-14 11:41:33 +00:00
version: pnpm ci:version
commit: "chore: update versions"
2024-03-05 05:58:53 +00:00
title: "Chore: Ready for Release"
2024-02-14 13:17:01 +00:00
publish: pnpm ci:publish
env:
2024-03-05 06:00:13 +00:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}