Skip to content

Commit

Permalink
feat: automatic update npm to latest on github release (#6658)
Browse files Browse the repository at this point in the history
* 13.0.0

* 14.0.0

* 15.0.0

* 16.0.0

* 17.0.0

* 18.0.0

* chore: version of the lib synced with the version of the angular

* chore: added automatic assign of latest version on github release

* chore(ci): changed trigger to on released
  • Loading branch information
lexasq authored Jul 3, 2024
1 parent 3acd888 commit e20ad78
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/on-gh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: on-gh-release
on:
release:
types: [released]

env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
MOZ_HEADLESS: 1
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
# one run
one_run:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

# update npm tags
npm_tag_update:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- run: |
npm config set registry https://registry.npmjs.org/
npm config set _authToken=${{ secrets.NPM_TOKEN }}
npm dist-tag add ngx-bootstrap@${{ steps.package-version.outputs.current-version}} latest

0 comments on commit e20ad78

Please sign in to comment.