Commit 9e179b2 1 parent 186ab56 commit 9e179b2 Copy full SHA for 9e179b2
File tree 4 files changed +77
-6
lines changed
4 files changed +77
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : NPM publish
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' main'
7
+
8
+ env :
9
+ success : ✅
10
+ failure : 🔴
11
+ cancelled : ❌
12
+ skipped : ⭕
13
+ node_version : 20
14
+ true : ✅
15
+ false : 🔴
16
+
17
+ jobs :
18
+
19
+ release :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+
24
+ - id : release
25
+ uses :
halvardssm/[email protected]
26
+ with :
27
+ token : ${{ secrets.GITHUB_TOKEN }}
28
+ path : " ./package.json" # optional, will use ./package.json by default
29
+
30
+ - run : |
31
+ echo 'Release created: ${{steps.release.outputs.release_created}}' # 'true' or 'false'
32
+ echo 'Release exists: ${{steps.release.outputs.release_exists}}' # 'true' or 'false'
33
+ echo 'Release tag: ${{steps.release.outputs.release_tag}}' # The tag from package.json
34
+
35
+ - name : Notification
36
+ if : ${{ always() }}
37
+ uses : appleboy/telegram-action@master
38
+ with :
39
+ token : ${{ secrets.BOT_TOKEN }}
40
+ to : ${{ secrets.CHAT_ID }}
41
+ message : |
42
+ Repository: ${{ github.repository }}
43
+ Release : ${{ env[steps.release.outputs.release_created] }}
44
+ Tag: ${{ steps.release.outputs.release_tag }}
45
+
46
+
47
+ publish-npm :
48
+ needs : release
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - uses : actions/checkout@v3
52
+
53
+ - uses : actions/setup-node@v3
54
+ with :
55
+ node-version : 20
56
+ registry-url : https://registry.npmjs.org/
57
+
58
+ - run : npm ci
59
+ - run : npm publish
60
+ env :
61
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
62
+
63
+ - name : Notification
64
+ if : ${{ always() }}
65
+ uses : appleboy/telegram-action@master
66
+ with :
67
+ token : ${{ secrets.BOT_TOKEN }}
68
+ to : ${{ secrets.CHAT_ID }}
69
+ message : |
70
+ Repository: ${{ github.repository }}
71
+ npm publish : ${{ env[job.status] }}
Original file line number Diff line number Diff line change 1
- # 1.2 .0
1
+ # 2.0 .0
2
2
3
3
⚠️ BREAKING CHANGE
4
4
5
5
[ @adonisjs/drive ] ( https://docs.adonisjs.com/guides/digging-deeper/drive ) is required
6
6
7
7
*** Config basePath is deleted, replace by location option of fs service***
8
8
9
- *** Refacto getUrl() view helper, [ add await] ( https://github.com/batosai/adonis-attachment/tree/1.2.0 ?tab=readme-ov-file#urls ) ***
9
+ *** Refacto getUrl() view helper, [ add await] ( https://github.com/batosai/adonis-attachment?tab=readme-ov-file#urls ) ***
10
10
11
- *** Access [ serialize] ( https://github.com/batosai/adonis-attachment/tree/1.2.0 ?tab=readme-ov-file#by-serialize ) is update***
11
+ *** Access [ serialize] ( https://github.com/batosai/adonis-attachment?tab=readme-ov-file#by-serialize ) is update***
12
12
13
13
* support @adonisjs/drive
14
14
* dependencies update
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Project sample : [adonis-starter-kit](https://github.com/batosai/adonis-starter-
18
18
- [ ] edge component
19
19
- [x] serialize
20
20
21
- ⚠️ Breaking change [ 1. 2.0 version] ( https://github.com/batosai/adonis-attachment/blob/1.2.0 /CHANGELOG.md ) , include [ @adonisjs/drive ] ( https://docs.adonisjs.com/guides/digging-deeper/drive )
21
+ ⚠️ Breaking change [ 2.0.0 version] ( https://github.com/batosai/adonis-attachment/blob/main /CHANGELOG.md ) , include [ @adonisjs/drive ] ( https://docs.adonisjs.com/guides/digging-deeper/drive )
22
22
23
23
### File sytem
24
24
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @jrmc/adonis-attachment" ,
3
- "version" : " 1. 2.0-1 " ,
3
+ "version" : " 2.0.0 " ,
4
4
"type" : " module" ,
5
5
"description" : " Turn any field on your Lucid model to an attachment data type" ,
6
6
"engines" : {
78
78
"prettier" : " @adonisjs/prettier-config" ,
79
79
"publishConfig" : {
80
80
"access" : " public" ,
81
- "tag" : " beta "
81
+ "tag" : " latest "
82
82
},
83
83
"volta" : {
84
84
"node" : " 20.16.0"
You can’t perform that action at this time.
0 commit comments