Skip to content

Commit 0ceb72a

Browse files
authored
chore(ci): add npm publishing (#25)
1 parent 1202301 commit 0ceb72a

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,32 @@ jobs:
1212
with:
1313
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
1414
app-id: ${{ secrets.TOKENS_APP_ID }}
15-
1615
- uses: GoogleCloudPlatform/release-please-action@v3
16+
id: release
1717
with:
1818
token: ${{ steps.get-token.outputs.token }}
1919
release-type: node
2020
package-name: '@netlify/plugin-secrets-manager'
21+
- uses: actions/checkout@v3
22+
if: ${{ steps.release.outputs.release_created }}
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: '*'
26+
cache: 'npm'
27+
check-latest: true
28+
registry-url: 'https://registry.npmjs.org'
29+
if: ${{ steps.release.outputs.release_created }}
30+
- name: Install dependencies
31+
run: npm ci
32+
if: ${{ steps.release.outputs.release_created }}
33+
- name: Linting
34+
run: npm run format:ci
35+
if: ${{ steps.release.outputs.release_created }}
36+
- name: Tests
37+
run: npm run test:ci
38+
if: ${{ steps.release.outputs.release_created }}
39+
- name: Publish to npm
40+
run: npm publish
41+
if: ${{ steps.release.outputs.release_created }}
42+
env:
43+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)