build: use experimental version for release-please testing #2
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- release-please | |
name: Release PR | |
jobs: | |
release-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: node | |
package-name: test-release-please | |
- uses: actions/checkout@v3 | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
if: ${{ steps.release.outputs.release_created }} | |
- run: npm ci | |
if: ${{ steps.release.outputs.release_created }} | |
- run: npm test | |
if: ${{ steps.release.outputs.release_created }} | |
# | |
# On release, checkout and run tests before publishing... | |
# | |
# TODO: Uncomment this once we're actually ready to roll a new release --RWK | |
# - run: npm publish | |
# env: | |
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
# if: ${{ steps.release.outputs.release_created }} |