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

Commit

Permalink
build: convert to new github action syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy Antoine authored and tanguyantoine committed Aug 20, 2019
1 parent 2875372 commit 4d0033c
Show file tree
Hide file tree
Showing 4 changed files with 596 additions and 182 deletions.
42 changes: 0 additions & 42 deletions .github/main.workflow

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish

on:
push:
tags:
- release-*

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: yarn test

publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn semantic-release:ci
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

publish-gpr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@tanguyantoine'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"semantic-release:ci": "semantic-release --no-ci"
},
"devDependencies": {
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.7",
"@types/react-native": "^0.57.11",
"semantic-release": "^15.12.1",
"typescript": "^3.1.6"
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/git": "^7.0.16",
"@types/react-native": "^0.60.7",
"semantic-release": "^15.13.21",
"typescript": "^3.5.3"
}
}
Loading

0 comments on commit 4d0033c

Please sign in to comment.