Skip to content

Commit

Permalink
Cut a release of the embedded host after the compiler releases (#68)
Browse files Browse the repository at this point in the history
Co-authored-by: Awjin Ahn <awjin@google.com>
  • Loading branch information
nex3 and Awjin Ahn authored Jan 27, 2022
1 parent d9b98b4 commit f26ed51
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,36 @@ jobs:
- name: Deploy
run: dart pub run grinder pkg-github-windows
env: {GH_BEARER_TOKEN: "${{ github.token }}"}

release_embedded_host:
name: "Release Embedded Host"
runs-on: ubuntu-latest
needs: [deploy_github_linux, deploy_github_macos, deploy_github_windows]
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass-embedded'"

steps:
- uses: actions/checkout@v2
with:
repository: sass/embedded-host-node
token: ${{ secrets.GH_TOKEN }}

- name: Get version
id: version
run: echo "::set-output name=version::${GITHUB_REF##*/}"

- name: Update version
run: >
cat package.json |
jq --arg version ${{ steps.version.outputs.version }} '
.version |= $version |
."compiler-version" |= $version
' > package.json.tmp &&
mv package.json.tmp package.json
shell: bash

- uses: EndBug/add-and-commit@v8
with:
author_name: Sass Bot
author_email: sass.bot.beep.boop@gmail.com
message: Update compiler version and release
tag: ${{ steps.version.outputs.version }}
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## Release process

Because this package's version remains in lockstep with the current version of
Dart Sass, it's not released manually from this repository. Instead, a release
commit is automatically generated once a new Dart Sass version has been
released. As such, manual commits should never:

* Update the `pubspec.yaml`'s version to a non-`-dev` number. Changing it from
non-`-dev` to dev when adding a new feature is fine.

* Update the `pubspec.yaml`'s dependency on `sass` to a non-Git dependency.
Changing it from non-Git to Git when using a new feature is fine.

0 comments on commit f26ed51

Please sign in to comment.