Skip to content

Merge pull request #47 from ubiquity/release-please--branches--main--… #14

Merge pull request #47 from ubiquity/release-please--branches--main--…

Merge pull request #47 from ubiquity/release-please--branches--main--… #14

name: Publish Package
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
target-branch: main
- name: Checkout repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
registry-url: https://registry.npmjs.org/
- name: Build
run: |
yarn install --immutable --check-cache
yarn build
yarn pack
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}