Skip to content

Merge pull request #16 from mcarvin8/remove-log #31

Merge pull request #16 from mcarvin8/remove-log

Merge pull request #16 from mcarvin8/remove-log #31

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Release Please
id: release
uses: googleapis/release-please-action@v4
with:
release-type: node
- uses: pnpm/[email protected]
with:
version: 8
if: ${{ steps.release.outputs.release_created == 'true' }}
- name: Checkout
uses: actions/[email protected]
if: ${{ steps.release.outputs.release_created == 'true' }}
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18
cache: pnpm
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created == 'true' }}
- name: Install Dependencies
run: pnpm install
if: ${{ steps.release.outputs.release_created == 'true' }}
- name: Build
run: pnpm build
if: ${{ steps.release.outputs.release_created == 'true' }}
- name: Test
run: pnpm test
if: ${{ steps.release.outputs.release_created == 'true' }}
- name: Publish to NPM
run: npm publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created == 'true' }}