Skip to content

chore(main): release 2.0.2 (#26) #2

chore(main): release 2.0.2 (#26)

chore(main): release 2.0.2 (#26) #2

name: Release Please
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{secrets.GITHUB_TOKEN}}
release-type: "go"
release-package:
runs-on: ubuntu-latest
needs: [ release-please ]
permissions:
id-token: write # Needed if using OIDC to get release secrets.
contents: write # Contents and pull-requests are for release-please to make releases.
pull-requests: write
if: ${{ needs.release-please.outputs.release_created == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.0.0
name: 'Get the NPM token'
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/production/common/releasing/npm/token = NODE_AUTH_TOKEN'
- uses: ./.github/actions/publish
name: Publish Package to npm
with:
prerelease: false
dry_run: false