Skip to content

Commit cd10bb3

Browse files
authored
chore: update action (#8)
1 parent cd9c5bb commit cd10bb3

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/npmpublish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,32 @@ on:
88
- "package.json"
99
- "**.md"
1010

11+
env:
12+
NODE_VERSION: 16
13+
1114
jobs:
1215
publish-package:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Checkout Repository
16-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
1720
with:
21+
token: ${{ secrets.ACTIONS_ACCESS_KEY }}
1822
fetch-depth: 0
1923

20-
- name: Install node 14
21-
uses: actions/setup-node@v2
24+
- name: Install Node.JS
25+
uses: actions/setup-node@v3
2226
with:
23-
node-version: 14.x
27+
node-version: ${{ env.NODE_VERSION }}
28+
cache: 'yarn'
2429
registry-url: "https://npm.pkg.github.com"
2530
scope: "@rapidapi"
2631

2732
- name: Install root dependencies
2833
run: yarn --no-progress --non-interactive --frozen-lockfile
2934

3035
- name: Checkout GitHub Actions
31-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
3237
with:
3338
repository: RapidAPI/rapidapi-github-actions
3439
ref: master
@@ -45,4 +50,4 @@ jobs:
4550
- name: Publish HttpSnippet Package
4651
run: yarn publish
4752
env:
48-
NODE_AUTH_TOKEN: ${{secrets.ACTIONS_ACCESS_KEY}}
53+
NODE_AUTH_TOKEN: ${{ secrets.ACTIONS_ACCESS_KEY }}

0 commit comments

Comments
 (0)