Skip to content

Commit

Permalink
Merge pull request #398 from scala-steward-org/new-release-process
Browse files Browse the repository at this point in the history
Changes `release` workflow to tag on every push to `master`
  • Loading branch information
alejandrohdezma authored Sep 4, 2022
2 parents e369373 + e9ee74d commit 4da08b3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 127,658 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ncc.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Run `npm run build` and push changes to `master`
# Releases a new minor version every time a PR is merged into `master`.
#
# It also generates the `dist` folder inside the tag's commit, keeping
# the `master` branch clean.
#
# It will also update the major tag v2 to track the latest tag.

name: Release new version

on:
push:
branches:
- "master"
- master

jobs:
build-and-push:
name: Run `npm run build` and push changes to `master`
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand All @@ -26,8 +32,7 @@ jobs:
- name: Run `npm run build`
run: npm run build

- name: Push changes
uses: alejandrohdezma/actions/commit-and-push@v1
- name: Release new version
uses: int128/release-typescript-action@710792dba005107302778a7c70d595ca3e6f9b19 # v1.15.0
with:
message: Format & build [skip ci]
branch: master
major-version: 2
14 changes: 0 additions & 14 deletions .github/workflows/update-major-tag.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@ lib/**/*

# Ignore Visual Studio Code files
.vscode

# Ignore `dist` folder, it is generated only inside tag's commits
dist
Loading

0 comments on commit 4da08b3

Please sign in to comment.