45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Publish
|
|
if: github.repository == 'bluesky-social/atproto'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
cache: pnpm
|
|
node-version-file: '.nvmrc'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
# Temporary workaround for an issue with Node.js v22
|
|
# https://github.com/npm/cli/issues/9151
|
|
# https://github.com/npm/cli/pull/9152
|
|
- run: npm install --global npm@11.11.1
|
|
- run: npm install --global npm@latest
|
|
- run: pnpm install --frozen-lockfile
|
|
env:
|
|
PUPPETEER_SKIP_DOWNLOAD: true
|
|
- name: Publish
|
|
uses: changesets/action@v1
|
|
id: changesets
|
|
with:
|
|
publish: pnpm release
|
|
version: pnpm run version-packages
|
|
commit: 'Version packages'
|
|
title: 'Version packages'
|