-
-
Notifications
You must be signed in to change notification settings - Fork 287
34 lines (34 loc) · 989 Bytes
/
v4.3.x.yaml
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
name: verson 4.3.x
env:
APPVERSION: 4.3.${{ github.run_number }}
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "**.ts"
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: yarn install
# - run: sed -i '3s/\([0-9]\{1,3\}\.[0-9]\{1,3\}\)\.[0-9]\{1,3\}/\1.${{ github.run_number }}/g' package.json
- name: sed version
run: sed -i '3s/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/${{ env.APPVERSION }}/g' package.json
- run: npm run build
- run: npm publish
- name: GH Release
uses: softprops/[email protected]
with:
tag_name: ${{ env.APPVERSION }}
target_commitish: ${{ github.sha }}