Skip to content

Schopp/fix async

Schopp/fix async #31

Workflow file for this run

name: node-jet CI
env:
NODE_VERSION: '20.8'
on:
release:
types: [created]
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm ci
- run: npm run ci:eslint
- run: npm run ci:prettier
- run: npm run ci:type-check
- run: npm test
publish-npm:
# if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: git config --global user.email "you@example.com"
- run: git config --global user.name "you@example.com"
- run: npm version ${{ env.RELEASE_VERSION }}
- run: npm run build
- run: npm publish --dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}