Skip to content

Commit 7e7554f

Browse files
authored
Automatically publish the npm package and associated documentation website (#233)
* Automatically publish the npm package and associated documentation website currently the publishing of both these things is done within the compute-sdk-as-js repository. as we are moving away from that repository and into this public one, I have added automation for publishing to npm when the @fastly/js-compute package has been updated by our release-please pull-requests. The process is not yet fully automated for making a release as we still need to commit the built binaries into @fastly/js-compute - once we complete the work to avoid commiting the binaries then this can become fully automated! * Update release-please.yml
1 parent 946b3cb commit 7e7554f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,19 @@ jobs:
1111
- uses: google-github-actions/release-please-action@v3
1212
with:
1313
command: manifest
14+
token: ${{ secrets.JS_COMPUTE_RUNTIME_GITHUB_TOKEN }}
15+
- uses: actions/checkout@v2
16+
if: ${{ steps.release.outputs.releases_created }}
17+
- uses: actions/setup-node@v2
18+
with:
19+
cache: 'npm'
20+
node-version: 18
21+
registry-url: 'https://registry.npmjs.org'
22+
if: ${{ steps.release.outputs.releases_created }}
23+
- run: npm ci && npm run build
24+
if: ${{ steps.release.outputs.releases_created }}
25+
- run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28+
FASTLY_API_TOKEN: ${{secrets.FASTLY_API_TOKEN}}
29+
if: ${{ steps.release.outputs.releases_created }}

0 commit comments

Comments
 (0)