diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index eff0d166a..b9bc79849 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -8,19 +8,24 @@ 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" @@ -28,7 +33,7 @@ jobs: 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 @@ -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 }}