Skip to content

fix: GitHub Actions flow #29

fix: GitHub Actions flow

fix: GitHub Actions flow #29

Workflow file for this run

name: Build scripts
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install and build
run: |
corepack enable
yarn set version stable
yarn install
yarn run rebuild
mkdir npm && mv dist LICENSE README.md package.json lib 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: git@github.com: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 }}