STAT-11: Using static data for benchmarks. #39
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: Node.js Package Dev Release | |
on: | |
push: | |
branches-ignore: | |
- 'master' | |
jobs: | |
build-and-publish-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run tests | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Get current version | |
id: package-version | |
uses: martinbeentjes/[email protected] | |
- name: Generate unique version | |
id: generate-version | |
run: | | |
current_version=$(echo ${{ steps.package-version.outputs.current-version}} | sed 's/-dev\.[0-9]\+$//') | |
timestamp=$(date +%Y%m%d%H%M%S) | |
echo "new_version=${current_version}-dev.${timestamp}" >> $GITHUB_OUTPUT | |
- name: Update version | |
run: npm version ${{ steps.generate-version.outputs.new_version }} --no-git-tag-version | |
- name: Publish to npm | |
run: npm publish --tag dev | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |