Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,32 @@ on:
- "package.json"
- "**.md"

env:
NODE_VERSION: 16

jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTIONS_ACCESS_KEY }}
fetch-depth: 0

- name: Install node 14
uses: actions/setup-node@v2
- name: Install Node.JS
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
registry-url: "https://npm.pkg.github.com"
scope: "@rapidapi"

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

- name: Checkout GitHub Actions
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: RapidAPI/rapidapi-github-actions
ref: master
Expand All @@ -45,4 +50,4 @@ jobs:
- name: Publish HttpSnippet Package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.ACTIONS_ACCESS_KEY}}
NODE_AUTH_TOKEN: ${{ secrets.ACTIONS_ACCESS_KEY }}