This repository was archived by the owner on Jan 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Original file line number Diff line number Diff line change 1
- name : npm-publish
1
+ name : Publish NPM
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
4
+ release :
5
+ types : [published]
7
6
8
7
jobs :
9
- npm-publish :
10
- name : npm-publish
8
+ publish-npm :
11
9
runs-on : ubuntu-latest
12
10
steps :
13
- - name : Checkout repository
14
- uses : actions/checkout@master
15
- - name : Set up Node.js
16
- uses : actions/setup-node@master
17
- with :
18
- node-version : 10.0.0
19
- - name : Publish if version has been updated
20
- uses : pascalgn/npm-publish-action@4f4bf159e299f65d21cd1cbd96fc5d53228036df
21
- with : # All of theses inputs are optional
22
- tag_name : " %s"
23
- tag_message : " %s"
24
- commit_pattern : " ^Release (\\ S+)"
25
- env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
27
- NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v1
13
+ with :
14
+ node-version : 10
15
+ registry-url : https://registry.npmjs.org/
16
+ - run : npm ci
17
+ - run : npm publish
18
+ env :
19
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
20
+
21
+ publish-gpr :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+ - uses : actions/setup-node@v1
26
+ with :
27
+ node-version : 10
28
+ registry-url : https://npm.pkg.github.com/
29
+ - run : npm ci
30
+ - run : npm publish
31
+ env :
32
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @menadevs/objectron" ,
3
- "version" : " 0.1.7 " ,
3
+ "version" : " 0.1.8 " ,
4
4
"description" : " Compares a set of match rules contained with an object to determine if the latter conforms to the matching rules" ,
5
5
"main" : " index.js" ,
6
6
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments