Skip to content

Commit 1ca61ad

Browse files
authored
chore: automate npm publishing (#413)
1 parent 37070d8 commit 1ca61ad

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/release-please.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ jobs:
1313
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
1414
app-id: ${{ secrets.TOKENS_APP_ID }}
1515
- uses: GoogleCloudPlatform/release-please-action@v2
16+
id: release
1617
with:
1718
token: ${{ steps.get-token.outputs.token }}
1819
release-type: node
1920
package-name: 'netlify-lambda'
21+
- uses: actions/checkout@v2
22+
if: ${{ steps.release.outputs.release_created }}
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: '15'
26+
registry-url: 'https://registry.npmjs.org'
27+
if: ${{ steps.release.outputs.release_created }}
28+
- run: npm publish
29+
if: ${{ steps.release.outputs.release_created }}
30+
env:
31+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,4 @@ After submitting the pull request, please make sure the Continuous Integration c
4343

4444
## Releasing
4545

46-
1. Merge the release PR
47-
2. Switch to the default branch `git checkout main`
48-
3. Pull latest changes `git pull`
49-
4. Publish the package `npm publish`
46+
Merge the release PR

0 commit comments

Comments
 (0)