Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/dev-package.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/publish.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release

on:
push:
branches: [master]
workflow_dispatch: # For dev publishing

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
id-token: write # Required for OIDC / trusted publishing
contents: write # Required for changesets pushing commits
pull-requests: write # Required for changesets creating PRs

env:
SECRETS: ${{ toJSON(secrets) }}
GITHUB_TOKEN: ${{ secrets.SHARED_GH_TOKEN }}

jobs:
build:
name: Publish Packages
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v5

- name: Enable Corepack
run: corepack enable

- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
cache: pnpm


- name: Update npm
run: |
npm install -g npm@latest
npm --version

- name: Install dependencies
run: pnpm install --no-frozen-lockfile

- name: Build
run: pnpm build

# - name: Create Release Pull Request or Publish to npm
# id: changesets
# uses: changesets/action@v1
# if: ${{ github.event_name == 'push' }}
# with:
# version: pnpm ci:version
# publish: pnpm ci:publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Dev publish
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
pnpm changeset version --no-git-tag --snapshot dev
pnpm changeset publish --tag dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 22.16
node-version-file: '.nvmrc'

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down
Loading