Skip to content

Commit

Permalink
asdsad
Browse files Browse the repository at this point in the history
  • Loading branch information
Junjiequan committed Aug 5, 2024
1 parent 78acb16 commit b3b2d76
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions .github/workflows/publish-package-to-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,8 @@ env:
NODE_VERSION: 18.x

jobs:
install-and-cache:
name: Run install and cache
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Cache node_modules
id: cached-node-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}-${{ env.NODE_VERSION }}

- name: Install dependencies
if: steps.cached-node-modules.outputs.cache-hit != 'true'
run: npm ci

generate-sdk:
runs-on: ubuntu-latest
needs: [install-and-cache]

steps:
- name: Checkout repository
Expand All @@ -47,6 +22,10 @@ jobs:
with:
node-version: ${{env.NODE_VERSION}}
registry-url: "https://registry.npmjs.org/"
- name: check docker-compose
run: |
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
- name: Run docker-compose
run: |
Expand Down

0 comments on commit b3b2d76

Please sign in to comment.