-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Copied deployment config from Langium * Add "Update versions" script * Add publish GH action * Run `npm pkg fix`
- Loading branch information
Showing
10 changed files
with
152 additions
and
178 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,41 @@ | ||
name: Publish | ||
|
||
permissions: | ||
id-token: write | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
name: Typir Publish | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Build | ||
shell: bash | ||
run: | | ||
npm ci | ||
npm run clean | ||
npm run build | ||
- name: Test | ||
if: success() || failure() | ||
shell: bash | ||
run: | | ||
npm run test:run | ||
- name: Publish NPM Packages | ||
shell: bash | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# Update the following list when a new npm package is added | ||
run: | | ||
npm run publish:latest --provenance --workspace=typir | ||
npm run publish:latest --provenance --workspace=typir-langium |
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,19 @@ | ||
# Release Process | ||
|
||
The release process is mostly automated and requires running only a few commands. After commiting, pushing, tagging and releasing the changes, a GitHub Action will publish all npm packages. | ||
|
||
1. Pull the latest changes from the main branch | ||
2. Create a new branch | ||
3. Uplift the package versions by running `npm version major|minor|patch --no-git-tag-version --workspaces` | ||
4. Update the dependency versions by running `npm run version:dependencies` | ||
5. Create a PR with your updated changes, get a review and merge it | ||
6. Create a version tag on the latest commit on main and push it | ||
|
||
```bash | ||
git checkout main | ||
git pull origin main | ||
git tag <version-tag> | ||
git push origin <version-tag> | ||
``` | ||
|
||
7. Create a [GitHub release](https://github.com/TypeFox/typir/releases) from the new tag (this will trigger the Github Action and publish all artifacts automatically). |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.