Skip to content

Commit

Permalink
fix: combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Jan 16, 2024
1 parent 74a420e commit 297094d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/release-package.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Release Please and Publish

on:
push:
branches:
Expand All @@ -17,3 +19,40 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node

build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.18
registry-url: 'https://npm.pkg.github.com'
- run: npm install
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.18
registry-url: https://npm.pkg.github.com/
- run: npm install
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 297094d

Please sign in to comment.