Skip to content

Commit 5ff3585

Browse files
committed
ci: switch to release-please
1 parent aa97602 commit 5ff3585

File tree

4 files changed

+238
-4351
lines changed

4 files changed

+238
-4351
lines changed

.github/workflows/release-please.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: google-github-actions/release-please-action@v3
11+
id: release
12+
with:
13+
release-type: node
14+
package-name: sql-highlight
15+
# The logic below handles the npm publication:
16+
- uses: actions/checkout@v2
17+
# these if statements ensure that a publication only occurs when
18+
# a new release is created:
19+
if: ${{ steps.release.outputs.release_created }}
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
registry-url: 'https://registry.npmjs.org'
24+
if: ${{ steps.release.outputs.release_created }}
25+
- run: npm ci
26+
if: ${{ steps.release.outputs.release_created }}
27+
- run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
30+
if: ${{ steps.release.outputs.release_created }}

.github/workflows/release.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)