-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to github workflows for release (sayonara Travis) (#113)
- Loading branch information
1 parent
a8ee3c8
commit 5fc880e
Showing
4 changed files
with
625 additions
and
1,272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -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", | ||
|
@@ -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" | ||
}, | ||
|
@@ -48,6 +47,9 @@ | |
"engines": { | ||
"node": ">=18.17.0" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
}, | ||
"browserslist": ["partially supports custom-elementsv1"], | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.