Update ci.yml

This commit is contained in:
Luke Hagar
2024-02-19 07:58:56 -06:00
parent 86d18650da
commit f431f9a0e7

View File

@@ -1,32 +1,41 @@
name: Changesets
name: Release
on:
push:
branches:
- main
paths:
- 'packages/**'
- '!packages/config-*/**'
- '.changeset/**'
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
CI: true
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
- name: setup node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.PUBLISH_TOKEN }}" > .npmrc
- name: install dependencies
run: pnpm install
- name: create and publish versions
uses: changesets/action@v1
with:
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.PUBLISH_TOKEN }}