Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit b44ae58

Browse files
author
Bassem Dghaidi
authored
Merge branch 'master' into develop
2 parents cdcb20f + d21259c commit b44ae58

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1-
name: npm-publish
1+
name: Publish NPM
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
release:
5+
types: [published]
76

87
jobs:
9-
npm-publish:
10-
name: npm-publish
8+
publish-npm:
119
runs-on: ubuntu-latest
1210
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 }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@menadevs/objectron",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "Compares a set of match rules contained with an object to determine if the latter conforms to the matching rules",
55
"main": "index.js",
66
"devDependencies": {

0 commit comments

Comments
 (0)