Skip to content

Commit

Permalink
small improvements to GH workflows + gitignore (#28)
Browse files Browse the repository at this point in the history
* small improvements to GH workflows + gitignore

* update test workflow to not use deprecated versions
  • Loading branch information
dandelany authored Nov 4, 2024
1 parent adaf057 commit 04bc2f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
publish-to-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: 'lts/*'
Expand All @@ -20,6 +20,5 @@ jobs:
run: npm ci
- name: Publish
run: npm publish
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
publish-to-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: |
cp schema.json seq-json-schema/
python3 setup.py sdist
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
with:
password: ${{ secrets.PYPI_API_TOKEN }}
print_hash: true
verbose: true
- name: Cleanup
if: always()
run: |
rm -rf *.egg-info dist
rm seq-json-schema/schema.json
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- uses: actions/setup-python@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
*.egg-info
.idea/
seq-json-schema/*.json
build
dist
Expand Down

0 comments on commit 04bc2f9

Please sign in to comment.