-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (34 loc) · 1.12 KB
/
publish-all.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
39
40
41
42
43
name: Publish both Lume packages
on:
workflow_dispatch:
release:
types: [published]
jobs:
setup:
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node version from .nvmrc
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Build the package
run: pnpm run build
- name: Publish Vue 2 package to npm registry
run: |
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_ADYEN_LUME_TOKEN }}
pnpm publish --filter='./packages/vue2' --no-git-checks
- name: Publish Vue 3 package to npm registry
run: |
pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_ADYEN_LUME_VUE3_TOKEN }}
pnpm publish --filter='./packages/vue3' --no-git-checks