Skip to content

Changesets

Changesets #89

Workflow file for this run

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