Skip to content

feat: add a custom baseURL for sidecar resolves (#200) #131

feat: add a custom baseURL for sidecar resolves (#200)

feat: add a custom baseURL for sidecar resolves (#200) #131

name: Run Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
Release-Please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
release_tag_name: ${{ steps.release.outputs.release_tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
monorepo-tags: true
Build-And-Publish:
environment: deployment
runs-on: ubuntu-latest
needs: [Release-Please]
if: ${{ needs.release-please.outputs.releases_created }}
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
shell: bash
run: corepack enable && yarn install
- name: Build
shell: bash
run: yarn bundle
- name: Publish to NPM
shell: bash
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
yarn config set 'npmRegistries["https://registry.npmjs.org"].npmAuthToken' $NPM_TOKEN
yarn publish-if-missing