-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.4 KB
/
Copy pathchangesets.yml
File metadata and controls
54 lines (48 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Changesets
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master
permissions:
contents: write
pull-requests: write
id-token: write
env:
CI: true
NPM_CONFIG_PROVENANCE: 'true'
jobs:
# Update package versions from changesets.
version:
timeout-minutes: 14
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/yarn-plugin-npm'
steps:
- name: checkout code repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: '.nvmrc'
- name: enable corepack
run: corepack enable
- name: install dependencies
run: yarn install
- name: build
run: yarn build
- name: create versions
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b
with:
version: yarn ci:version
commit: 'build: release packages'
title: 'build: release packages'
publish: yarn ci:publish
createGithubReleases: true
commitMode: github-api
setupGitUser: true
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_RELEASE_TOKEN }}
NPM_CONFIG_REGISTRY: https://registry.npmjs.org