Skip to content

Commit

Permalink
Merge branch 'main' into ncu-update
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Dec 17, 2024
2 parents e7df0cd + c415f47 commit 067fd97
Show file tree
Hide file tree
Showing 3 changed files with 1,043 additions and 24 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Relevent docs:
# - https://github.com/googleapis/release-please
# - https://github.com/googleapis/release-please-action

on:
workflow_dispatch:

push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.MIME_RELEASE_PLEASE_TOKEN }}
release-type: node

- run: echo "Release created?... ${{ steps.release.outputs.release_created }}"

# Steps below handle publication to NPM
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

- run: npm ci
if: ${{ steps.release.outputs.release_created }}

- run: npm test
if: ${{ steps.release.outputs.release_created }}

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.MIME_NPM_RELEASE_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
Loading

0 comments on commit 067fd97

Please sign in to comment.