Skip to content

Commit 421fe40

Browse files
authored
chore: add workflow step to publish to npm and plugins (#428)
1 parent bf30b57 commit 421fe40

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/release-please.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,23 @@ jobs:
1818
token: ${{ steps.get-token.outputs.token }}
1919
release-type: node
2020
package-name: '@netlify/plugin-lighthouse'
21+
- uses: actions/checkout@v2
22+
if: ${{ steps.release.outputs.releases_created }}
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: '*'
26+
cache: 'npm'
27+
check-latest: true
28+
registry-url: 'https://registry.npmjs.org'
29+
if: ${{ steps.release.outputs.releases_created }}
30+
- run: npm publish
31+
working-directory: plugin
32+
if: ${{ steps.release.outputs.releases_created }}
33+
env:
34+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
35+
- uses: netlify/submit-build-plugin-action@v1
36+
if: ${{ steps.release.outputs.releases_created }}
37+
with:
38+
github-token: ${{ steps.get-token.outputs.token }}
39+
package-json-dir: plugin
40+

release.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ module.exports = {
44
'@semantic-release/release-notes-generator',
55
'@semantic-release/changelog',
66
'@semantic-release/github',
7-
[
8-
'@semantic-release/npm',
9-
{
10-
npmPublish: false,
11-
},
12-
],
137
'@semantic-release/git',
148
],
159
};

0 commit comments

Comments
 (0)