Skip to content

Commit

Permalink
fix: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorTour committed Sep 10, 2023
1 parent bbc86c6 commit ebb1cee
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set node version to 16
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
node-version: "18"
- run: npm install
- run: npm run test
- run: npm test
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install --frozen-lockfile
- run: npm run test
- uses: JS-DevTools/npm-publish@v1
node-version: "18"
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
13 changes: 7 additions & 6 deletions .github/workflows/publishBeta.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: 'PublishBetaVersion'

on:
push:
tags:
Expand All @@ -8,13 +9,13 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install --frozen-lockfile
- run: npm run test
- uses: JS-DevTools/npm-publish@v1
node-version: "18"
- run: npm install
- run: npm test
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
tag: 'beta'

0 comments on commit ebb1cee

Please sign in to comment.