Skip to content

Commit

Permalink
Merge branch 'master' into doc-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Jul 5, 2021
2 parents d37dea8 + a607d6c commit 139f381
Show file tree
Hide file tree
Showing 13 changed files with 128 additions and 351 deletions.
2 changes: 0 additions & 2 deletions .dockerignore

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/docs-public.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is a basic workflow to help you get started with Actions

name: Public docs

on:
push:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Build website
run: cd website && yarn && yarn build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: website/build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Release

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: install
run: yarn
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test

on: ["push", "pull_request"]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: yarn install
run: yarn --frozen-lockfile
- name: test
run: yarn test
- name: coverage test
run: yarn jest --coverage
- uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

11 changes: 0 additions & 11 deletions .gitpod.yml

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

10 changes: 0 additions & 10 deletions Dockerfile

This file was deleted.

18 changes: 0 additions & 18 deletions docker-compose.yml

This file was deleted.

23 changes: 0 additions & 23 deletions index.html

This file was deleted.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@
"@babel/node": "^7.8.4",
"@types/jest": "^25.1.2",
"coveralls": "^3.0.0",
"cpx2": "^2.0.0",
"cross-env": "^5.1.3",
"deep-freeze": "^0.0.1",
"flow-bin": "^0.123.0",
"husky": "^1.2.0",
Expand All @@ -92,8 +90,6 @@
"spec.ts": "^1.1.0",
"ts-jest": "^25.2.0",
"tsdx": "^0.12.3",
"typescript": "^4.2.3",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11"
"typescript": "^4.2.3"
}
}
2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
title: "Immer",
tagline: "Create the next immutable state by mutating the current one.",
url: "https://immerjs.github.io/",
baseUrl: "/immer/",
baseUrl: process.env.NETLIFY_PREVIEW ? "/" : "/immer/",
projectName: "immer",
organizationName: "immerjs",
onBrokenLinks: "throw",
Expand Down
Loading

0 comments on commit 139f381

Please sign in to comment.