File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' nativescript -> npm'
2
+
3
+ on :
4
+ push :
5
+ branches : [ 'master' ]
6
+ workflow_dispatch :
7
+
8
+ env :
9
+ NPM_TAG : ' next'
10
+
11
+ jobs :
12
+ release :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ - name : Environement Setup
19
+ run : |
20
+ gem install xcodeproj
21
+ gem install cocoapods
22
+
23
+ - name : Setup
24
+ run : npm run setup
25
+
26
+ - name : Generate Version
27
+ run : |
28
+ echo NPM_VERSION=$(node -e "console.log(require('./package.json').version);")-$NPM_TAG-$(date +"%m-%d-%Y")-$GITHUB_RUN_ID >> $GITHUB_ENV
29
+
30
+ - name : Bump Version
31
+ run : npm version $NPM_VERSION
32
+
33
+ - name : Build nativescript
34
+ run : npm pack
35
+
36
+ - name : Publish nativescript
37
+ env :
38
+ NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
39
+ run : |
40
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ../../.npmrc
41
+ echo "Publishing nativescript@$NPM_VERSION to NPM with tag $NPM_TAG..."
42
+ // npm publish nativescript-$NPM_VERSION.tgz --tag $NPM_TAG
File renamed without changes.
You can’t perform that action at this time.
0 commit comments