Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Jan 20, 2024
1 parent 4d819cb commit a8339b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/npm-publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ jobs:
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- name: Install pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: latest
- run: pnpm install
- run: pnpm test
- run: git config --global user.email "bot@example.com"
- run: git config --global user.name "Github Action"
- run: |
pnpm version prerelease --no-git-tag-version \
--preid=`git rev-parse --short HEAD`
git commit package.json -m "next tag"
pnpm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 4 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- name: Install pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: latest
- run: pnpm install
- run: pnpm release
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches:
- main
jobs:
test-node:
name: Node.js test
test-okv:
name: Ordered keyvalue tests
runs-on: ubuntu-latest
steps:
- name: Préparation de Node.js
Expand All @@ -28,7 +28,7 @@ jobs:
run: pnpm install --lockfile=false

- name: Vérifier les tests
run: pnpm test:node
run: pnpm test

- name: Envoyer couverture à Codecov
uses: codecov/codecov-action@v3

0 comments on commit a8339b6

Please sign in to comment.