mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
dbd58cd275
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8f4b7f8486...8e5e7e5ab8
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
2 KiB
YAML
69 lines
2 KiB
YAML
name: Changesets
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
CI: true
|
|
PNPM_CACHE_FOLDER: .pnpm-store
|
|
|
|
jobs:
|
|
# Update package versions from changesets.
|
|
version:
|
|
timeout-minutes: 14
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
|
|
steps:
|
|
- name: checkout code repository
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: setup node.js
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
|
|
- name: install pnpm
|
|
run: npm i pnpm@latest-8 -g
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
|
|
- name: setup pnpm config
|
|
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
|
|
- name: setup pnpm config registry
|
|
run: pnpm config set registry https://registry.npmjs.org
|
|
|
|
- name: install dependencies
|
|
run: pnpm install
|
|
env:
|
|
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
|
|
|
|
- name: create versions
|
|
uses: changesets/action@master
|
|
with:
|
|
version: pnpm ci:version
|
|
commit: 'chore: update versions'
|
|
title: 'chore: update versions'
|
|
publish: pnpm ci:publish
|
|
createGithubReleases: false
|
|
setupGitUser: false
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.CHANGESET_RELEASE_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
|
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
|