Skip to content

Commit 5fc880e

Browse files
authored
Switch to github workflows for release (sayonara Travis) (#113)
1 parent a8ee3c8 commit 5fc880e

File tree

4 files changed

+625
-1272
lines changed

4 files changed

+625
-1272
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
7+
jobs:
8+
release:
9+
name: Release master
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # to publish a GitHub release
13+
issues: write # to comment on released issues
14+
pull-requests: write # to comment on released PRs
15+
id-token: write # to enable provenance
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Setup Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 'lts/*'
25+
- name: Install dependencies
26+
run: |
27+
corepack enable
28+
yarn install --frozen-lockfile
29+
- name: Verify dependency provenance
30+
run: yarn npm audit signatures
31+
- name: Perform release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: yarn run semantic-release

.travis.yml

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

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "applause-button",
33
"description": "A zero-configuration button for adding applause / claps / kudos to web pages and blog-posts",
4-
"version": "3.4.0",
4+
"version": "0.0.0-semantically-managed",
55
"main": "dist/applause-button.js",
66
"type": "module",
77
"license": "MIT",
@@ -20,9 +20,8 @@
2020
"puppeteer": "^23.2.2",
2121
"rollup": "^4.21.2",
2222
"rollup-plugin-import-css": "^3.5.1",
23-
"semantic-release": "^22.0.12",
24-
"serve": "^14.2.3",
25-
"travis-deploy-once": "^5.0.11"
23+
"semantic-release": "^24.1.2",
24+
"serve": "^14.2.3"
2625
},
2726
"scripts": {
2827
"test": "yarn run test:prettier && yarn run test:jest",
@@ -31,7 +30,7 @@
3130
"test:serve": "serve -l 8081",
3231
"build": "rollup -c",
3332
"watch": "rollup -c -w",
34-
"prepublish": "yarn run build",
33+
"prepack": "yarn run build",
3534
"travis-deploy-once": "travis-deploy-once",
3635
"semantic-release": "semantic-release"
3736
},
@@ -48,6 +47,9 @@
4847
"engines": {
4948
"node": ">=18.17.0"
5049
},
50+
"publishConfig": {
51+
"provenance": true
52+
},
5153
"browserslist": ["partially supports custom-elementsv1"],
5254
"packageManager": "yarn@1.22.22"
5355
}

0 commit comments

Comments
 (0)