0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/.github/workflows/changesets.yml

57 lines
1.2 KiB
YAML
Raw Normal View History

2020-08-23 02:17:36 -05:00
name: Changesets
2020-08-23 02:13:36 -05:00
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- 5.x
pull_request:
branches:
- 5.
env:
CI: true
2020-08-23 02:15:41 -05:00
PNPM_CACHE_FOLDER: .pnpm-store
2020-08-23 02:13:36 -05:00
jobs:
# Update package versions from changesets.
version:
timeout-minutes: 15
2020-09-01 14:22:36 -05:00
runs-on: ubuntu-latest
2020-08-23 02:13:36 -05:00
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
2020-08-23 02:15:41 -05:00
- name: install pnpm
2020-11-15 06:18:56 -05:00
run: npm i pnpm@latest -g
2020-08-23 02:15:41 -05:00
2020-08-23 02:17:36 -05:00
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: build
run: pnpm build
2020-08-23 02:13:36 -05:00
- name: create versions
uses: changesets/action@master
with:
version: pnpm ci:version
commit: 'chore: update versions'
title: 'chore: update versions'
publish: pnpm ci:publish
2020-08-23 02:13:36 -05:00
env:
2020-08-23 02:15:41 -05:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}