Skip to content

Commit

Permalink
Upgrade deps & update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
syimyuzya committed Sep 9, 2024
1 parent 9782154 commit 2bc7c3d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 35 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish-cos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ jobs:
- uses: actions/checkout@v4

# Build
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build
run: python build.py > index.js

# Test
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: https://registry.npmjs.org/
- name: Install Node.js packages
- name: Install Node.js dependencies
run: npm ci
- name: Build
run: python build.py > index.js
- name: Run tests
run: npm test

# Publish
- name: Install coscmd
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,26 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Build
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build
run: python build.py > index.js

# Test
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
node-version: '22'
registry-url: https://registry.npmjs.org/
- name: Install Node.js packages
- name: Install Node.js dependencies
run: npm ci
- name: Build
run: python build.py > index.js
- name: Run tests
run: npm test

# Publish
- name: Publish
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,34 @@ name: Test

on:
push:
branches: [main]
branches:
- main
- dev
- dev-*
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Build
- name: Setup Node.js
uses: actions/setup-node@v1
- name: Setup Python
uses: actions/setup-python@v5
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Install Node.js packages
run: npm ci
python-version: '3.12'
- name: Build
run: python build.py > index.js

# Test
- name: Test
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: https://registry.npmjs.org/
- name: Install Node.js dependencies
run: npm ci
- name: Run tests
run: npm test
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/nk2028/tshet-uinh-examples#readme",
"dependencies": {
"tshet-uinh": "^0.15.0-beta.7",
"tshet-uinh-deriver-tools": "^0.2.0-beta.7"
"tshet-uinh": "^0.15.0",
"tshet-uinh-deriver-tools": "^0.2.0"
}
}

0 comments on commit 2bc7c3d

Please sign in to comment.