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

39 lines
1.0 KiB
YAML
Raw Permalink 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-03-19 12:20:16 +00:00
run: pnpm install --no-frozen-lockfile
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-08 07:53:14 +00:00
title: "👷 [ci]: 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 }}