-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
187 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
name: Publish library to NPM | ||
name: Publish libraries | ||
|
||
on: | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
#ci_tests_and_build: | ||
# uses: ./.github/workflows/ci_tests.yml | ||
|
||
ci_publish: | ||
#needs: ci_tests_and_build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Make sure npm is latest | ||
cache: npm | ||
|
||
- name: Install latest npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Install dependencies | ||
run: npm clean-install | ||
- name: Lint | ||
run: npm run lint | ||
- name: Test | ||
run: npm run test | ||
- name: Build | ||
run: npm run build:lib | ||
# - name: Publish | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# run: npm publish ./dist --access=public | ||
|
||
- name: Build auth-js | ||
run: npm run build:auth-js | ||
|
||
- name: Build ngx-auth | ||
run: npm run build:ngx-auth | ||
|
||
- name: Run semantic-release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx multi-semantic-release --ignore-packages="projects/demo-e2e/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,62 @@ | ||
name: CI tests | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- '**' | ||
tags-ignore: | ||
- '**' | ||
- '**' | ||
paths-ignore: | ||
- 'projects/site/**' | ||
- 'projects/site/**' | ||
pull_request: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci_tests: | ||
name: Tests on linux node${{ matrix.node }} | ||
runs-on: ubuntu-latest | ||
name: Tests on ${{ matrix.os }} node${{ matrix.node }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
node: ['12', '14', '16'] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: [12, 14, 16] | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Make sure npm is latest | ||
cache: npm | ||
|
||
# https://github.com/actions/setup-node/issues/411 | ||
# https://github.com/npm/cli/issues/4341 | ||
- name: Workaround for npm installation on Windows | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: npm install -g npm@8.3.1 | ||
|
||
- name: Install latest npm | ||
run: npm install -g npm@latest | ||
|
||
- name: Install dependencies | ||
run: npm clean-install | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
# - name: Test | ||
# run: npm run test | ||
|
||
- name: Build auth-js | ||
run: npm run build:auth-js | ||
|
||
- name: Build ngx-auth | ||
run: npm run build:ngx-auth |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"branches": [ | ||
"master", | ||
{ | ||
"name": "main", | ||
"channel": "beta", | ||
"prerelease": "beta" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"pkgRoot": "../../dist/auth-js" | ||
} | ||
], | ||
"@semantic-release/github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.