Skip to content

Commit

Permalink
update: github actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
BANKA2017 committed Nov 20, 2024
1 parent b678ddc commit affd9ee
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/npm_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,16 @@ on:
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
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: "yarn"
cache-dependency-path: yarn.lock
- 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
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:
Expand All @@ -32,5 +26,5 @@ jobs:
COMMIT_NAME: ${{ secrets.COMMIT_NAME }}
COMMIT_EMAIL: ${{ secrets.COMMIT_EMAIL }}
SQUASH_HISTORY: true
MESSAGE: 'npm: {msg} ~ {sha}'
MESSAGE: "npm: {msg} ~ {sha}"
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

0 comments on commit affd9ee

Please sign in to comment.