Skip to content

Fix: race condition between WriteStream close and process exit #6

Fix: race condition between WriteStream close and process exit

Fix: race condition between WriteStream close and process exit #6

Workflow file for this run

name: Build and Publish
on:
pull_request:
branches:
- master
types:
- closed
jobs:
npm-publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
# NOTE: Hard Coded Node Version
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn setup
- name: Retrieve version
run : echo "NEW_VERSION=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT
id: version
- run: yarn publish --new-version ${{ steps.version.outputs.NEW_VERSION }} --access public --non-interactive
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}