Skip to content

Commit da8f179

Browse files
updated release workflow
1 parent 222f39f commit da8f179

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build-test-release:
88
runs-on: ubuntu-latest
99
permissions:
10-
contents: read
10+
contents: write
1111
id-token: write # CRITICAL: This enables OIDC authentication
1212
packages: write
1313

@@ -41,5 +41,17 @@ jobs:
4141
working-directory: dist/ngbootstrap
4242
env:
4343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44-
OTP: ${{ secrets.NPM_OTP }}
45-
run: npm publish --provenance --access public --otp "$OTP"
44+
run: npm publish --provenance --access public
45+
46+
- name: Read version
47+
id: pkg
48+
run: echo "version=$(node -p \"require('./package.json').version\")" >> "$GITHUB_OUTPUT"
49+
50+
- name: Create GitHub Release
51+
uses: actions/create-release@v1
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
with:
55+
tag_name: v${{ steps.pkg.outputs.version }}
56+
release_name: v${{ steps.pkg.outputs.version }}
57+
generate_release_notes: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-bootstrap/ngbootstrap",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Angular UI library providing datagrid, drag-and-drop, pagination, and stepper components with Bootstrap-friendly styling.",
55
"author": {
66
"name": "Harmeet Singh"

0 commit comments

Comments
 (0)