-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.37 KB
/
vdeploy.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
44
45
46
47
48
49
50
51
52
53
54
55
name: NPM Package
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Tag Version
run: ./.github/scripts/incr-version.sh ${{ github.ref_name }}
- name: Publising to NPM
uses: JS-DevTools/npm-publish@v3
with:
registry: https://registry.npmjs.org/
token: ${{ secrets.NPM_TOKEN }}
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Tag Version
run: ./.github/scripts/incr-version.sh ${{ github.ref_name }}
- name: Publising to GPR
uses: JS-DevTools/npm-publish@v3
with:
registry: https://npm.pkg.github.com/
token: ${{ secrets.GITHUB_TOKEN }}
vdeploy:
runs-on: ubuntu-latest
needs: [publish-npm, publish-gpr]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Increment Version
run: echo "bodyText=$(./.github/scripts/incr-version.sh ${{ github.ref_name }})" \
>> $GITHUB_ENV
- name: Version PR
uses: peter-evans/create-pull-request@v7
with:
commit-message: Update to ${{ github.ref_name }}
title: Update package.json (${{ github.ref_name }})
body: ${{ env.bodyText }}
branch: update-version
base: master