Skip to content

Commit 5e5bbc3

Browse files
release: v2.1.17-alpha.4 🚀
1 parent 8eaf24d commit 5e5bbc3

7 files changed

Lines changed: 25857 additions & 3839 deletions

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Authing SSO CI
4+
name: publish
55

66
on:
77
workflow_dispatch:
8-
inputs:
9-
name:
10-
description: 'Please enter your github name'
11-
required: true
12-
email:
13-
description: 'Please enter your github email'
14-
required: true
15-
version:
16-
description: 'Please enter your release version'
17-
required: true
188

199
jobs:
2010

@@ -23,8 +13,8 @@ jobs:
2313
runs-on: ubuntu-latest
2414

2515
env:
16+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2617
PUBLISH_OPTS: ${{ github.ref_name == 'master' && '--verbose' || '--verbose --tag=alpha' }}
27-
VERESION: ${{ github.event.inputs.version }}
2818

2919
steps:
3020

@@ -37,44 +27,31 @@ jobs:
3727
- name: before scripts
3828
run: |
3929
echo "Current branch: ${{ github.ref_name }}"
40-
echo "Current publish version: ${{ github.event.inputs.version }}"
41-
echo "Current user.name: ${{ github.event.inputs.name }}"
42-
echo "Current user.email: ${{ github.event.inputs.email }}"
43-
44-
- name: set git config
30+
echo "Current publish version: ${{ steps.version.outputs.value }}"
31+
32+
- name: install packages
4533
run: |
46-
git config --global user.email ${{ github.event.inputs.email }}
47-
git config --global user.name ${{ github.event.inputs.name }}
34+
npm ci
4835
49-
- name: publish
36+
- name: test
37+
run: |
38+
npm run test
39+
40+
- name: build
5041
run: |
51-
npm install yarn -g
52-
yarn
53-
yarn test
54-
yarn clean
42+
npm run clean
5543
npm run build
44+
45+
- name: publish
46+
run: |
5647
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
57-
npm version $VERESION
58-
npm publish $PUBLISH_OPTS
59-
env:
60-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
48+
npm publish $PUBLISH_OPTS --access public
6149
6250
- name: upload oss
6351
if: ${{ github.ref_name == 'master' }}
6452
run: |
65-
yarn oss accessKeyId=$OSS_KEY_ID accessKeySecret=$OSS_KEY_SECRET
53+
npm run oss accessKeyId=$OSS_KEY_ID accessKeySecret=$OSS_KEY_SECRET
6654
env:
6755
OSS_KEY_ID: ${{ secrets.OSS_KEY_ID }}
6856
OSS_KEY_SECRET: ${{ secrets.OSS_KEY_SECRET }}
6957
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
70-
71-
- name: release
72-
uses: actions/github-script@v3
73-
with:
74-
script: |
75-
github.git.createRef({
76-
owner: context.repo.owner,
77-
repo: context.repo.repo,
78-
ref: "refs/tags/${{ env.VERESION }}",
79-
sha: context.sha
80-
})

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Authing SSO Test CI
4+
name: test
55

66
on: [push]
77

0 commit comments

Comments
 (0)