Skip to content

Commit

Permalink
Create new release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Apr 4, 2023
1 parent 00341eb commit 49b72ab
Show file tree
Hide file tree
Showing 7 changed files with 1,300 additions and 109 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "Siteimprove/alfa-integrations" }],
"commit": false,
"fixed": [["@siteimprove/alfa-*"]],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/small-walls-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@siteimprove/alfa-assert": patch
---

Empty release

No change, just testing the new release flow
60 changes: 15 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,17 @@
name: Release
on:
push:
tags:
- "v*"
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
registry-url: 'https://npm.pkg.github.com'
scope: '@siteimprove'
- name: Configure token for Alfa packages (read)
run: >
yarn config set
npmScopes.siteimprove.npmAuthToken
${{ github.token }}
- name: Configure token for Alfa packages (publish)
run: >
yarn config set
'npmRegistries["https://npm.pkg.github.com"].npmAuthToken'
${{ github.token }}
- run: yarn install --immutable
- run: yarn build
- run: yarn test
name: Create a new release

- name: Make npm release
run: >
yarn workspaces foreach
--no-private
--topological-dev
npm publish --tolerate-republish
on:
# WARNING! This workflow will push back to main and trigger other workflows.
# WARNING! Only use manual trigger to avoid creating infinite workflow loops.
workflow_dispatch:

- name: Make Github release
run: >
gh release create ${{ github.ref_name }}
--prerelease
--verify-tag
--title ${{ github.ref_name }}
--notes "[Changelog for this release](CHANGELOG.md)"
env:
GH_TOKEN: ${{ github.token }}
jobs:
release:
name: Release
uses: siteimprove/alfa/.github/workflows/alfa-release.yml@main
with:
# See https://api.github.com/users/siteimprove-builduser
user-name: siteimprove-builduser
user-email: [email protected]
secrets:
token: ${{ secrets.A11Y_PUBLIC_GITHUB_TOKEN }}
25 changes: 2 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
# Changelog

All notable changes to Alfa will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and Alfa adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<details>
<summary><strong>Guidelines for writing changelog entries</strong></summary>

The changelog includes a single entry for every released version of Alfa. Each entry is identified by two pieces of information: The version number and the date, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format, of the release. The very first entry in the changelog, labelled `[Unreleased]`, includes all upcoming changes for inclusion in the next release.

Each entry may begin with a general description of the changes introduced in the release and must then list each notable change as separate list items. For each item, the following should be included:

- The name of the package affected, as the first point in the item: `[@siteimprove/alfa-<package>](packages/alfa-<package>): <description>`. If more than one package is affected, the package names must be separated by a comma.

- The issue and/or pull request that concerns the change, as the last point in the item and enclosed by parentheses: `<description> ([#<number>](../../issues/<number>))`. If more than one reference is needed, the references must be separated by a comma. All references must be within the same set of parentheses.

Items that are related, such as breaking changes, new features, or changes to existing features, should be grouped under an appropriate heading.

**Note on links:** For all links to repository resources rooted at `https://github.com/<owner>/<repo>`, make sure to use paths relative to `https://github.com/<owner>/<repo>/blob` which is the path from which GitHub [performs autolinking](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-readmes#relative-links-and-image-paths-in-readme-files). This helps keeps links short and ensures that they are not tied to a specific owner and repository name in the event that we should move and/or rename the repository. Also, please refrain from using [shortcut reference links](https://github.github.com/gfm/#shortcut-reference-link) as they make it difficult to copy/paste entries to outside the changelog.

</details>

## [0.62.3](../../compare/v0.61.0...v0.62.3) (2023-03-30)
# [0.62.3](../../compare/v0.61.0...v0.62.3) (2023-03-30)

No functional change, first release handled from the `alfa-integrations` repository.

## 0.61.0 (2023-03-06)
# 0.61.0 (2023-03-06)

Changes up to version 0.61.0 were tracked in the [main Alfa Changelog](https://github.com/Siteimprove/alfa/blob/main/CHANGELOG.md)
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"packages/*"
],
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.1",
"@microsoft/api-documenter": "^7.19.9",
"@microsoft/api-extractor": "^7.29.5",
"@types/async": "^3.2.5",
Expand Down
Loading

0 comments on commit 49b72ab

Please sign in to comment.