Skip to content

Commit

Permalink
Switch to github workflows for release (sayonara Travis) (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty authored Oct 10, 2024
1 parent a8ee3c8 commit 5fc880e
Show file tree
Hide file tree
Showing 4 changed files with 625 additions and 1,272 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
on:
push:
branches:
- 'master'

jobs:
release:
name: Release master
runs-on: ubuntu-latest
permissions:
contents: write # to publish a GitHub release
issues: write # to comment on released issues
pull-requests: write # to comment on released PRs
id-token: write # to enable provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: |
corepack enable
yarn install --frozen-lockfile
- name: Verify dependency provenance
run: yarn npm audit signatures
- name: Perform release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "applause-button",
"description": "A zero-configuration button for adding applause / claps / kudos to web pages and blog-posts",
"version": "3.4.0",
"version": "0.0.0-semantically-managed",
"main": "dist/applause-button.js",
"type": "module",
"license": "MIT",
Expand All @@ -20,9 +20,8 @@
"puppeteer": "^23.2.2",
"rollup": "^4.21.2",
"rollup-plugin-import-css": "^3.5.1",
"semantic-release": "^22.0.12",
"serve": "^14.2.3",
"travis-deploy-once": "^5.0.11"
"semantic-release": "^24.1.2",
"serve": "^14.2.3"
},
"scripts": {
"test": "yarn run test:prettier && yarn run test:jest",
Expand All @@ -31,7 +30,7 @@
"test:serve": "serve -l 8081",
"build": "rollup -c",
"watch": "rollup -c -w",
"prepublish": "yarn run build",
"prepack": "yarn run build",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
Expand All @@ -48,6 +47,9 @@
"engines": {
"node": ">=18.17.0"
},
"publishConfig": {
"provenance": true
},
"browserslist": ["partially supports custom-elementsv1"],
"packageManager": "[email protected]"
}
Loading

0 comments on commit 5fc880e

Please sign in to comment.