-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 1.18 KB
/
issue1137.yml
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
name: Release (Private Packages)
on:
workflow_dispatch:
jobs:
version_or_release:
name: 'Version and open PR (or) release private packages'
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 6.14.5 # Specify the pnpm version here
- name: setup node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: setup npmrc file to configure pnpm
run: |
cat << EOF > "$HOME/.npmrc"
@mycompany:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=$NPM_PUBLISH_TOKEN
//registry.npmjs.org/:_authToken=null
EOF
- name: create and publish versions
uses: changesets/action@v1
with:
cwd: ${{ github.workspace }}
version: pnpm run version
commit: "chore: update package versions"
title: "Release (Private Packages)"
publish: pnpm run publish:ci