-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 1.04 KB
/
release.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
name: Release Plugins
on:
workflow_dispatch: # manual trigger
# push: # on push to master branch
# branches:
# - master
jobs:
release:
runs-on: ubuntu-latest
if: contains(fromJSON('["umangmoe", "arshiya-moengage"]'), github.actor)
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Clone the complete code
fetch-tags: true # Clone code with all tags
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.5.1
registry-url: 'https://registry.npmjs.org'
- name: Configure git
run: |
git config --local user.name "sdk-bot-user"
git config --local user.email "[email protected]"
- name: Release setup
run: |
chmod +x .github/scripts/release.sh
- name: Publishing plugins
run: |
.github/scripts/release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}