File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
- master
8
+ tags :
9
+ - v*
8
10
pull_request : {}
9
11
10
12
concurrency :
76
78
run : yarn install --frozen-lockfile
77
79
- name : Run Tests
78
80
run : ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
81
+
82
+ publish :
83
+ name : Publish
84
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
85
+ runs-on : ubuntu-latest
86
+ needs : ' test'
87
+
88
+ steps :
89
+ - name : Checkout
90
+ uses : actions/checkout@v2
91
+ - name : Install Node
92
+ uses : actions/setup-node@v2
93
+ with :
94
+ node-version : 12.x
95
+ cache : yarn
96
+ # This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
97
+ registry-url : ' https://registry.npmjs.org'
98
+
99
+ - name : Install Dependencies
100
+ run : yarn install --frozen-lockfile
101
+
102
+ - name : Publish to npm
103
+ run : npm publish
104
+ env :
105
+ NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments