fix: minor tweak to docs (#153) #90
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: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
name: Run Release Please | |
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@v4 | |
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: | | |
echo "npmRegistries:\n \"https://registry.npmjs.org\":\n npmAuthToken: $NPM_TOKEN" >> .yarnrc.yml | |
yarn publish-if-missing |