Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit 61aa3dd

Browse files
committed
Test workflows
1 parent 5b2b262 commit 61aa3dd

File tree

4 files changed

+2358
-86
lines changed

4 files changed

+2358
-86
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ name: Publish
77
on:
88
release:
99
types: [created]
10+
push:
11+
tags:
12+
- 'v*'
1013

1114
jobs:
1215
publish-npm:
@@ -17,7 +20,8 @@ jobs:
1720
with:
1821
node-version: 12
1922
registry-url: https://registry.npmjs.org/
20-
- run: npm publish
23+
24+
- run: npm publish --access=public
2125
env:
2226
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2327

@@ -29,7 +33,7 @@ jobs:
2933
with:
3034
node-version: 12
3135
registry-url: https://npm.pkg.github.com/
32-
scope: '@surmon-china'
36+
3337
- run: npm publish
3438
env:
3539
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@ jobs:
1111
build:
1212
name: Create Release
1313
runs-on: ubuntu-latest
14+
1415
steps:
1516
- name: Checkout code
1617
uses: actions/checkout@master
17-
- run: echo ${{ github }}
18+
1819
- name: Create Release
1920
id: create_release
2021
uses: actions/create-release@latest
2122
env:
2223
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2324
with:
2425
tag_name: ${{ github.ref }}
25-
release_name: Release ${{ github.ref }}
26-
body: |
27-
Changes in this Release
28-
- First Change
29-
- Second Change
26+
release_name: ${{ github.ref }}
27+
# body:
3028
draft: false
3129
prerelease: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@surmon-china/abc-factory",
3-
"version": "0.2.7",
3+
"version": "0.2.8",
44
"description": "JavaScript base factory",
55
"author": {
66
"name": "Surmon",

0 commit comments

Comments
 (0)