0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/.github/workflows/changesets.yml

70 lines
1.9 KiB
YAML
Raw Normal View History

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
2020-08-23 09:13:36 +02:00
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
2020-08-23 09:13:36 +02:00
with:
2023-04-12 12:08:47 +02:00
node-version-file: '.nvmrc'
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
2024-01-14 10:17:05 +01:00
- name: Install pnpm
run: |
corepack enable
corepack install
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 }}
- name: crowdin download
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
CONTEXT: production
run: pnpm crowdin:download
- name: build
run: pnpm build
2020-08-23 09:13:36 +02:00
- name: create versions
2022-09-04 11:42:46 +02:00
uses: changesets/action@master
2020-08-23 09:13:36 +02:00
with:
version: pnpm ci:version
commit: 'chore: update versions'
title: 'chore: update versions'
publish: pnpm ci:publish
2022-09-04 11:50:28 +02:00
createGithubReleases: false
setupGitUser: false
2020-08-23 09:13:36 +02:00
env:
2022-09-04 11:50:28 +02:00
GITHUB_TOKEN: ${{ secrets.CHANGESET_RELEASE_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