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

64 lines
1.6 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:
2021-04-10 04:55:38 -05:00
- master
2020-08-23 02:13:36 -05:00
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:
2021-04-03 14:04:31 -05:00
timeout-minutes: 14
2020-09-01 14:22:36 -05:00
runs-on: ubuntu-latest
2021-04-10 04:55:38 -05:00
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
2020-08-23 02:13:36 -05:00
steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup node.js
2021-01-10 14:49:17 -05:00
uses: actions/setup-node@v2
2020-08-23 02:13:36 -05:00
with:
2021-04-03 14:04:31 -05:00
node-version: 14
2021-01-10 15:04:09 -05:00
registry-url: 'https://registry.verdaccio.org'
2021-04-04 01:06:50 -05:00
env:
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
2020-08-23 02:13:36 -05:00
2020-08-23 02:15:41 -05:00
- name: install pnpm
2021-07-27 14:59:01 -05:00
run: npm i pnpm@6.10.3 -g
2021-01-10 15:04:09 -05:00
env:
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
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
2021-01-10 15:04:09 -05:00
- name: setup pnpm config registry
run: pnpm config set registry https://registry.verdaccio.org
2020-08-23 02:17:36 -05:00
- name: install dependencies
run: pnpm install
2021-01-10 15:04:09 -05:00
env:
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}
2020-08-23 02:17:36 -05:00
- name: build
run: pnpm build
2020-08-23 02:13:36 -05:00
- name: create versions
uses: verdaccio/changeset-action@master
2020-08-23 02:13:36 -05:00
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 }}
2021-01-10 14:40:45 -05:00
NODE_AUTH_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}