Skip to content

Merge pull request #9 from shawnjones253/sjones/NodeHttp2TransportOpt… #9

Merge pull request #9 from shawnjones253/sjones/NodeHttp2TransportOpt…

Merge pull request #9 from shawnjones253/sjones/NodeHttp2TransportOpt… #9

Workflow file for this run

name: Publish Package to npmjs
on:
push:
tags:
- 'v*'
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
**/node_modules
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-cache-
- run: yarn install --immutable
- run: yarn npm publish --access public