Skip to content

Merge pull request #32 from hlysine/develop #34

Merge pull request #32 from hlysine/develop

Merge pull request #32 from hlysine/develop #34

on:
push:
branches:
- main
name: release-please
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@hlysine/reactive'
prerelease: true
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
if: ${{ steps.release.outputs.release_created }}
- name: Lint
run: npm run lint
if: ${{ steps.release.outputs.release_created }}
- name: Build
run: npm run build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
- run: npm run make:docs
if: ${{ steps.release.outputs.release_created }}
- name: Deploy TypeDoc
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
if: ${{ steps.release.outputs.release_created }}