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

36 lines
949 B
YAML
Raw Normal View History

2024-02-24 10:05:08 +00:00
name: "Changesets: Publish Packages from main"
on:
push:
branches:
- main
env:
CI: true
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
2024-03-05 07:11:33 +00:00
node-version: 20
2024-02-24 10:05:08 +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
run: pnpm install
- name: create and publish versions
2024-03-05 07:11:33 +00:00
uses: matthiesenxyz/changeset@v1
2024-02-24 10:05:08 +00:00
with:
version: pnpm ci:version
commit: "chore: update versions"
2024-03-07 22:48:40 +00:00
title: "[`ci`]: Release Ready"
2024-02-24 10:05:08 +00:00
publish: pnpm ci:publish
env:
2024-02-24 10:10:11 +00:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}