2020-08-23 09:17:36 +02:00
|
|
|
name: Changesets
|
2020-08-23 09:13:36 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
push:
|
|
|
|
branches:
|
2021-04-10 11:55:38 +02:00
|
|
|
- master
|
2020-08-23 09:13:36 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CI: true
|
2020-08-23 09:15:41 +02:00
|
|
|
PNPM_CACHE_FOLDER: .pnpm-store
|
2020-08-23 09:13:36 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
# Update package versions from changesets.
|
|
|
|
version:
|
2021-04-03 21:04:31 +02:00
|
|
|
timeout-minutes: 14
|
2020-09-01 21:22:36 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-04-10 11:55:38 +02:00
|
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
|
2020-08-23 09:13:36 +02:00
|
|
|
steps:
|
|
|
|
- name: checkout code repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: setup node.js
|
2021-01-10 20:49:17 +01:00
|
|
|
uses: actions/setup-node@v2
|
2020-08-23 09:13:36 +02:00
|
|
|
with:
|
2021-04-03 21:04:31 +02:00
|
|
|
node-version: 14
|
2021-09-03 22:17:22 +02:00
|
|
|
registry-url: 'https://registry.npmjs.org'
|
2021-04-04 08:06:50 +02:00
|
|
|
env:
|
2021-09-03 22:17:22 +02:00
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
2020-08-23 09:13:36 +02:00
|
|
|
|
2020-08-23 09:15:41 +02:00
|
|
|
- name: install pnpm
|
2021-07-27 21:59:01 +02:00
|
|
|
run: npm i pnpm@6.10.3 -g
|
2021-01-10 21:04:09 +01:00
|
|
|
env:
|
2021-09-03 22:17:22 +02:00
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
2020-08-23 09:15:41 +02:00
|
|
|
|
2020-08-23 09:17:36 +02:00
|
|
|
- name: setup pnpm config
|
|
|
|
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
|
2021-01-10 21:04:09 +01:00
|
|
|
- name: setup pnpm config registry
|
2021-09-03 22:17:22 +02:00
|
|
|
run: pnpm config set registry https://registry.npmjs.org
|
2020-08-23 09:17:36 +02:00
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
run: pnpm install
|
2021-01-10 21:04:09 +01:00
|
|
|
env:
|
2021-09-03 22:17:22 +02:00
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
2020-08-23 09:17:36 +02:00
|
|
|
|
2021-01-10 19:05:21 +01:00
|
|
|
- name: build
|
|
|
|
run: pnpm build
|
|
|
|
|
2020-08-23 09:13:36 +02:00
|
|
|
- name: create versions
|
2021-04-23 22:32:49 +02:00
|
|
|
uses: verdaccio/changeset-action@master
|
2020-08-23 09:13:36 +02:00
|
|
|
with:
|
|
|
|
version: pnpm ci:version
|
|
|
|
commit: 'chore: update versions'
|
|
|
|
title: 'chore: update versions'
|
2021-01-10 19:05:21 +01:00
|
|
|
publish: pnpm ci:publish
|
2020-08-23 09:13:36 +02:00
|
|
|
env:
|
2020-08-23 09:15:41 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-09-03 22:17:22 +02:00
|
|
|
NPM_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
2021-09-03 23:19:27 +02:00
|
|
|
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|