Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 4d0033c

Browse files
Tanguy Antoinetanguyantoine
Tanguy Antoine
authored andcommitted
build: convert to new github action syntax
1 parent 2875372 commit 4d0033c

File tree

4 files changed

+596
-182
lines changed

4 files changed

+596
-182
lines changed

.github/main.workflow

-42
This file was deleted.

.github/workflows/publish.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- release-*
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- run: yarn install --frozen-lockfile
17+
- run: yarn test
18+
19+
publish-npm:
20+
needs: test
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v1
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
registry-url: https://registry.npmjs.org/
28+
- run: yarn semantic-release:ci
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
33+
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
34+
35+
publish-gpr:
36+
needs: test
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v1
40+
- uses: actions/setup-node@v1
41+
with:
42+
node-version: 12
43+
registry-url: https://npm.pkg.github.com/
44+
scope: '@tanguyantoine'
45+
- run: npm publish
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"semantic-release:ci": "semantic-release --no-ci"
3636
},
3737
"devDependencies": {
38-
"@semantic-release/changelog": "^3.0.2",
39-
"@semantic-release/git": "^7.0.7",
40-
"@types/react-native": "^0.57.11",
41-
"semantic-release": "^15.12.1",
42-
"typescript": "^3.1.6"
38+
"@semantic-release/changelog": "^3.0.4",
39+
"@semantic-release/git": "^7.0.16",
40+
"@types/react-native": "^0.60.7",
41+
"semantic-release": "^15.13.21",
42+
"typescript": "^3.5.3"
4343
}
4444
}

0 commit comments

Comments
 (0)