-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (31 loc) · 1.08 KB
/
npm_branch.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
name: Build scripts
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Yarn install
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Yarn build
run: |
yarn run rebuild
mkdir npm && mv dist LICENSE README.md package.json npm && mv npm/dist/esm/index.browser.d.ts npm/dist/esm/translator.mod.d.ts
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:BANKA2017/translator-utils.git
BRANCH: npm
FOLDER: npm
COMMIT_NAME: ${{ secrets.COMMIT_NAME }}
COMMIT_EMAIL: ${{ secrets.COMMIT_EMAIL }}
SQUASH_HISTORY: true
MESSAGE: "npm: {msg} ~ {sha}"
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}