Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes release workflow to tag on every push to master #398

Merged
merged 1 commit into from
Sep 4, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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