From be96457d390fa4892b515a435d0788ead1a30293 Mon Sep 17 00:00:00 2001 From: Willem Date: Sat, 28 Sep 2024 00:23:24 +0200 Subject: [PATCH] ci: restore tag only runs --- .github/workflows/main.yml | 52 ++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a3285a..a8fbbed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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