Skip to content

Commit 5c9ecf7

Browse files
juan-fernandeziunanua
authored andcommitted
Add dev release line on merge to master (#2755)
1 parent c138dc7 commit 5c9ecf7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release-dev.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release dev release line
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
dev_release:
10+
runs-on: ubuntu-latest
11+
environment: npm
12+
env:
13+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: yarn install
20+
- id: pkg
21+
run: |
22+
content=`cat ./package.json | tr '\n' ' '`
23+
echo "::set-output name=json::$content"
24+
- run: npm version --no-git-tag-version ${{ fromJson(steps.pkg.outputs.json).version }}-$(git rev-parse --short HEAD)+${{ github.run_id }}.${{ github.run_attempt }}
25+
- run: npm publish --tag dev

0 commit comments

Comments
 (0)