Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
pull_request:
types: [closed]
branches: [master]

permissions: {}

jobs:
draft-release:
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'releases/')
runs-on: ubuntu-latest
permissions:
# Required to create the draft release.
contents: write
# Required to comment the draft release on the pull request.
pull-requests: write

steps:
# Ideally, we'd also update the link pointing to our process docs in the
# README.md file when this version changes.
- uses: mozilla/addons/.github/actions/release@442a70320c838d93bd0c34708471b8c5ca7ce86f # 1.1
with:
repo: ${{ github.repository }}
sha: ${{ github.event.pull_request.merge_commit_sha }}
pr: ${{ github.event.pull_request.number }}
github_token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,5 +283,10 @@ Here is a partial list of examples:
[signing](https://addons-server.readthedocs.io/en/latest/topics/api/v4_frozen/signing.html)
extensions.

[web-ext-user-docs]: https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/
## Releases

This project follows the [semantic versioning](https://semver.org/) specification. To release a new version of this library on npmjs.org, please see [our release process][].

[dynamic-imports]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
[our release process]: https://github.com/mozilla/addons/tree/1.1/.github/actions/release#release-process
[web-ext-user-docs]: https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/