Skip to content

Commit

Permalink
ci: restore tag only runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerke committed Sep 27, 2024
1 parent baeaa4b commit be96457
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,33 @@ name: CI Master

on:
push:
branches:
- 'dev-2.0.0'
# tags:
# - '*'
tags:
- '*'

jobs:
# build-library:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v1
# - name: Setup node
# uses: actions/setup-node@v1
# with:
# node-version: "14"
# registry-url: https://registry.npmjs.org
# - name: Install dependencies
# run: |
# npm ci
# npm uninstall -g @angular/cli
# npm install -g @angular/cli@12
# - name: Set Version
# run: sed -i "s/\[ci-version\]/${GITHUB_REF##*/}-$GITHUB_RUN_NUMBER/g" ./version.ts
# - name: Build Library
# run: ng build --project angular-toastify
# - name: Publish Library to NPM
# run: npm publish ./dist/angular-toastify
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
build-library:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "14"
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: |
npm ci
npm uninstall -g @angular/cli
npm install -g @angular/cli@12
- name: Set Version
run: sed -i "s/\[ci-version\]/${GITHUB_REF##*/}-$GITHUB_RUN_NUMBER/g" ./version.ts
- name: Build Library
run: ng build --project angular-toastify
- name: Publish Library to NPM
run: npm publish ./dist/angular-toastify
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

deploy-pages:
runs-on: ubuntu-latest
Expand Down

0 comments on commit be96457

Please sign in to comment.