Skip to content

Commit

Permalink
Github action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryjappinen committed Jun 23, 2024
1 parent ff38428 commit 41a491a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ runs:
# Self-checkout
- name: Initial checkout
id: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Setup
- name: Node setup
id: setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ runs:

# Self-checkout
- name: Initial checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Setup
- name: Node setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/run
with:
script: lint

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/run
with:
script: test
Expand All @@ -24,7 +24,7 @@ jobs:
needs: [lint, test]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/publish
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 41a491a

Please sign in to comment.