Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use auto to automate releases on PR merge.
Browse files Browse the repository at this point in the history
sammacbeth committed Oct 28, 2022
1 parent 28ca551 commit c8c20fa
Showing 4 changed files with 3,355 additions and 146 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on: [push]

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm ci
npm run release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -8,3 +8,4 @@ rules/rules.*
lib/**/*.js
addon/*.js
.vscode/
.env
3,461 changes: 3,317 additions & 144 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -21,7 +21,8 @@
"version": "node update_version.js && git add addon/manifest.*.json",
"vendor-copy": "mkdir -p addon/vendor && cp node_modules/mocha/mocha.* addon/vendor/ && cp node_modules/chai/chai.js addon/vendor/",
"prepublish": "npm run build-rules && npm run bundle",
"launch:firefox": "web-ext run -s dist/addon-firefox"
"launch:firefox": "web-ext run -s dist/addon-firefox",
"release": "auto shipit"
},
"author": "Sam Macbeth",
"license": "MPL-2.0",
@@ -34,6 +35,7 @@
"@types/mocha": "^9.1.1",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"auto": "^10.37.6",
"chai": "^4.2.0",
"eslint-config-airbnb": "^19.0.4",
"mocha": "^10.0.0",
@@ -43,5 +45,12 @@
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"web-ext": "^7.3.0"
},
"repository": "duckduckgo/autoconsent",
"auto": {
"plugins": [
"npm"
],
"onlyPublishWithReleaseLabel": true
}
}
}

0 comments on commit c8c20fa

Please sign in to comment.