Skip to content

Commit

Permalink
feat(pool-time-core): publish initial pool-time-core
Browse files Browse the repository at this point in the history
  • Loading branch information
louisscruz committed Jun 27, 2020
1 parent 482f08e commit 5035d27
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,37 @@ jobs:
- name: Prettier
run: yarn prettier:check
runs-on: ubuntu-latest
release:
release-pool-time-core:
# TEMP: We need to do an initial publish
# if: github.ref == 'refs/heads/master'
needs: ['build-pool-time-core', 'commitlint', 'format', 'test-pool-time-core']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: nvm
name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Download pool-time-core
uses: actions/download-artifact@v1
with:
name: pool-time-core-dist
- name: Move pool-time-core dist
shell: bash
run: |
mv pool-time-core-dist projects/pool-time-core/dist
- name: Install dependencies
run: yarn --offline --frozen-lockfile
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release
run: yarn semantic-release
working-directory: ./projects/pool-time-core
release-react-pool-time:
if: github.ref == 'refs/heads/master'
needs: ['build-documentation', 'build-react-pool-time', 'commitlint', 'format', 'test-react-pool-time']
runs-on: ubuntu-latest
Expand Down Expand Up @@ -125,7 +155,7 @@ jobs:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Install dependencies
run: yarn --offline --frozen-lockfile
- name: Test react-pool-time
- name: Test pool-time-core
run: yarn test:ci
working-directory: ./projects/pool-time-core
- name: Upload coverage to Codecov
Expand Down
9 changes: 9 additions & 0 deletions projects/pool-time-core/.releaserc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"next",
"next-major",
"add-pool-time-core",
{ "name": "beta", "prerelease": true },
{ "name": "alpha", "prerelease": true }
],
"extends": "semantic-release-monorepo"
}
3 changes: 3 additions & 0 deletions projects/pool-time-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"name": "@pool-time/pool-time-core",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/pool-time/pool-time",
"scripts": {
"build": "yarn clean && rollup -c",
Expand Down

0 comments on commit 5035d27

Please sign in to comment.