npmjs.com Pre-release #21
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: npmjs.com Pre-release | |
on: [workflow_dispatch] | |
jobs: | |
test: | |
uses: './.github/workflows/test.yaml' | |
npm-prerelease: | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: npm install, build, and publish | |
run: | | |
npm ci --loglevel error | |
PRERELEASE=$(date +%y%m%d%H%M%S) | |
VERSION=$(jq -r .version ./packages/query-composer/package.json)-dev$PRERELEASE | |
npm version -w packages/query-composer --no-git-tag-version $VERSION | |
npm publish -w packages/query-composer --access=public | |
env: | |
CI: true | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |