3365bf8b22
* install pnpm through corepack * remove engine from services package.json
38 lines
879 B
YAML
38 lines
879 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build & Publish
|
|
if: github.repository == 'bluesky-social/atproto'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: corepack enable && corepack prepare --activate
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: package.json
|
|
cache: 'pnpm'
|
|
- run: pnpm i --frozen-lockfile
|
|
- run: pnpm build
|
|
- run: pnpm verify
|
|
- name: Publish
|
|
id: changesets
|
|
uses: changesets/action@v1
|
|
with:
|
|
publish: pnpm release
|
|
version: pnpm version-packages
|
|
commit: 'Version packages'
|
|
title: 'Version packages'
|