@idearium/fetch-v3.0.0-beta.3 #322
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: '@idearium/log-http' | |
on: | |
push: | |
paths: | |
- 'packages/log-http/**' | |
release: | |
types: [published] | |
jobs: | |
test: | |
if: (github.event_name == 'push' && !contains(github.ref, '@idearium/')) || (github.event_name == 'release' && contains(github.ref, '@idearium/log-http-v')) | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: lts/* | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn | |
- run: yarn workspace @idearium/log-http test | |
publish: | |
if: github.event_name == 'release' && contains(github.ref, '@idearium/log-http-v') | |
name: Publish | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: lts/* | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn | |
- name: Publish (beta) | |
if: contains(github.ref, 'beta') | |
run: yarn workspace @idearium/log-http publish --tag beta --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish | |
if: "!contains(github.ref , 'beta')" | |
run: yarn workspace @idearium/log-http publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |