Skip to content

Commit

Permalink
ci: use npm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Sep 29, 2024
1 parent e1bdec4 commit 239517e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish
on:
push:
tags: [ 'v*' ]
tags: ["v*"]
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -22,7 +22,7 @@ jobs:
- run: sudo apt install -y openssh-server && sudo sed -E -i 's|^#?(PermitUserEnvironment)\s.*|\1 yes|' /etc/ssh/sshd_config && sudo systemctl start sshd
- run: ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
- run: cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
- run: yarn --frozen-lockfile
- run: npm ci
- run: CI_DISABLE_SSH_ENV=1 yarn run test
publish:
needs: [test]
Expand All @@ -34,9 +34,9 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
- run: sudo apt install -y openssh-server && sudo sed -E -i 's|^#?(PermitUserEnvironment)\s.*|\1 yes|' /etc/ssh/sshd_config && sudo systemctl start sshd
- run: ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ''
- run: cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
- run: yarn --frozen-lockfile
- run: npm ci
- run: CI_DISABLE_SSH_ENV=1 yarn run test

0 comments on commit 239517e

Please sign in to comment.