Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit ceec53a

Browse files
authored
chore: automate npm publishing (#50)
1 parent 823f7bd commit ceec53a

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,8 +13,20 @@ 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/netlify-functions-js'
2021
bump-minor-pre-major: true
22+
- uses: actions/checkout@v2
23+
if: ${{ steps.release.outputs.release_created }}
24+
- uses: actions/setup-node@v2
25+
with:
26+
node-version: '15'
27+
registry-url: 'https://registry.npmjs.org'
28+
if: ${{ steps.release.outputs.release_created }}
29+
- run: npm publish
30+
if: ${{ steps.release.outputs.release_created }}
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

CONTRIBUTING.md

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

3939
## Releasing
4040

41-
1. Merge the release PR
42-
2. Switch to the default branch `git checkout main`
43-
3. Pull latest changes `git pull`
44-
4. Publish the package `npm publish`
41+
Merge the release PR

0 commit comments

Comments
 (0)