Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
46 changes: 46 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release NPM Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.11.0]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

publish-npr:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.11.0]
steps:
- name: Checkout
uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm ci
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "password-strength-meter",
"name": "@eresearchqut/password-strength-meter",
"version": "12.0.0",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -72,11 +72,11 @@
},
"repository": {
"type": "git",
"url": "https://github.com/antoantonyk/password-strength-meter.git"
"url": "https://github.com/eresearchqut/angular-password-strength-meter.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/antoantonyk/password-strength-meter/issues"
"url": "https://github.com/eresearchqut/angular-password-strength-meter/issues"
},
"homepage": "https://github.com/antoantonyk/password-strength-meter"
"homepage": "https://github.com/eresearchqut/angular-password-strength-meter"
}
8 changes: 4 additions & 4 deletions projects/password-strength-meter/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "angular-password-strength-meter",
"name": "@eresearchqut/angular-password-strength-meter",
"version": "12.0.0",
"dependencies": {
"tslib": "^2.7.0"
Expand All @@ -24,11 +24,11 @@
],
"repository": {
"type": "git",
"url": "https://github.com/antoantonyk/password-strength-meter.git"
"url": "https://github.com/eresearchqut/angular-password-strength-meter.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/antoantonyk/password-strength-meter/issues"
"url": "https://github.com/eresearchqut/angular-password-strength-meter/issues"
},
"homepage": "https://github.com/antoantonyk/password-strength-meter"
"homepage": "https://github.com/eresearchqut/angular-password-strength-meter"
}
Loading