-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 990 Bytes
/
publish-package.yml
File metadata and controls
40 lines (33 loc) · 990 Bytes
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
name: 📦 Publish package
on:
workflow_dispatch:
inputs:
package:
description: "Public package to publish (packages/public/*)"
required: true
type: choice
options:
- ios-common-cookies
cliArgs:
description: "CLI args"
required: false
default: ""
jobs:
publish:
name: Publish selected package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Set npm token
uses: "./.github/actions/set-npm-token"
with:
npm-token: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish package
working-directory: packages/public/${{ github.event.inputs.package }}
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npx semantic-release ${{ github.event.inputs.cliArgs }}