Files
AFFiNE-Mirror/.github/workflows/changlog.yml
DiamondThree cc72448ba3 add changeset config to CI (#618)
* fix: get user by email  name is wrong

* fix: improve message

* feat: add changeset

* feat: add changelog CI config

* fix: data-services version

* fix: Conflict resolution

* feat: add changelog CI config

* fix: data-services version
2022-12-29 09:38:58 +00:00

50 lines
1.4 KiB
YAML

name: Pathfinder changelog
on:
push:
branches: [feat/filesystem_and_search, master]
# Cancels all previous workflow runs for pull requests that have not completed.
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
# The concurrency group contains the workflow name and the branch name for
# pull requests or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
name: publish changelog
runs-on: self-hosted
environment: development
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 'latest'
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
- name: Restore cache
uses: actions/cache@v3
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Create changelog
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}