mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
chore: add changesets workflow
This commit is contained in:
parent
34f0f11012
commit
34e1261354
1 changed files with 42 additions and 0 deletions
42
.github/workflows/changesets.yml
vendored
Normal file
42
.github/workflows/changesets.yml
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
name: Node CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 5.x
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 5.
|
||||||
|
|
||||||
|
env:
|
||||||
|
CI: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Update package versions from changesets.
|
||||||
|
version:
|
||||||
|
timeout-minutes: 15
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/5.x' && github.repository == 'verdaccio/verdaccio'
|
||||||
|
steps:
|
||||||
|
- name: checkout code repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: setup node.js
|
||||||
|
uses: actions/setup-node@v2-beta
|
||||||
|
with:
|
||||||
|
node-version: 14
|
||||||
|
|
||||||
|
- name: create versions
|
||||||
|
uses: changesets/action@master
|
||||||
|
with:
|
||||||
|
version: pnpm ci:version
|
||||||
|
commit: 'chore: update versions'
|
||||||
|
title: 'chore: update versions'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue