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

chore: add basic workflow for release #120

Merged
merged 1 commit into from
Mar 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release
on:
push:
branches:
- master
jobs:

build:
name: build-package
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Restore npm packages
run: npm install
- name: Install Angular
run: npm install -g @angular/cli
- name: Build package
run: npm run build:lib
- name: Publish if version has been updated
if: github.ref == 'refs/heads/master'
uses: pascalgn/[email protected]
with:
tag_name: "v%s"
tag_message: "v%s"
create_tag: "true"
commit_pattern: "^chore\\(release\\): (\\S+)"
workspace: "./@packaged/angular-star-rating"
publish_command: "yarn"
publish_args: "--non-interactive"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}