[npm] Bump @types/readable-stream from 4.0.16 to 4.0.17 #572
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push] | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.18.0" | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Compile | |
run: yarn build | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.18.0" | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Check for formatting issues | |
run: yarn prettier . --check --ignore-unknown | |
- name: Run tests | |
run: yarn test | |
publish: | |
needs: [compile, test] | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.18.0" | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Publish to npm | |
run: | | |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | |
if [[ ${GITHUB_REF} == *alpha* ]]; then | |
npm publish --access public --tag alpha | |
elif [[ ${GITHUB_REF} == *beta* ]]; then | |
npm publish --access public --tag beta | |
else | |
npm publish --access public | |
fi | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |