Skip to content

Commit

Permalink
fix: build with better names
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbnetley committed Feb 10, 2022
1 parent 88a4aaf commit d93eaf6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ concurrency:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
release-please:
github-release:
runs-on: ubuntu-latest
steps:
#Generates github release notes once release-pr is merged
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: ${{ github.event.repository.name }}
command: github-release
token: ${{ secrets.GITHUB_TOKEN }}
default-branch: main

Expand Down Expand Up @@ -57,4 +59,19 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm publish
npm publish
release-pr:
runs-on: ubuntu-latest
needs:
- github-release
strategy:
fail-fast: false
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: ${{ github.event.repository.name }}
command: release-pr
token: ${{ secrets.GITHUB_TOKEN }}
default-branch: main

0 comments on commit d93eaf6

Please sign in to comment.