Skip to content

Commit

Permalink
ci: add changeset action (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking authored Jan 8, 2024
1 parent 3201991 commit c310959
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/typescript-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Typescript Publish
on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- 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
working-directory: ./js
run: pnpm install --frozen-lockfile
- name: create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm ci:publish
cwd: "./js"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c310959

Please sign in to comment.