Skip to content

Commit

Permalink
Merge pull request #48 from remix-pwa/revert-45-dev
Browse files Browse the repository at this point in the history
Revert "Action fixes"
  • Loading branch information
ShafSpecs committed Sep 13, 2023
2 parents e1ed93d + 861daa5 commit f5cb516
Show file tree
Hide file tree
Showing 174 changed files with 4,760 additions and 17,968 deletions.
24 changes: 0 additions & 24 deletions .all-contributorsrc

This file was deleted.

1 change: 0 additions & 1 deletion .github/funding.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Production deploy

on:
push:
branches: [main]

jobs:
validate:
name: Validate
uses: ./.github/workflows/validate.yaml
with:
environment: production

release:
name: Release
needs: [validate]
uses: ./.github/workflows/semantic-release.yaml
with:
environment: production
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: Release
name: Validate

on:
push:
branches: [main, dev]
workflow_call:
inputs:
environment:
description: The environment name value. One of staging or production.
required: true
type: string

env:
NPM_VERSION: 9
SEMANTIC_RELEASE_VERSION: 21.0.1

jobs:
release:
name: Semantic release
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,17 +29,11 @@ jobs:
node-version: 18
- name: Install dependencies
run: npm clean-install
- name: Build packages
run: npm run build
- name: Setup NPM
run: |
npm config set workspaces-update=false --global
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_ENV: production
HUSKY: 0
run: |
npx --package @semantic-release/exec --package @semantic-release/git --package @semantic-release/changelog --package semantic-release@${{ env.SEMANTIC_RELEASE_VERSION }} --package @qiwi/multi-semantic-release multi-semantic-release
npx --package @semantic-release/exec --package @semantic-release/git --package @semantic-release/changelog --package semantic-release-slack-bot --package semantic-release@${{ env.SEMANTIC_RELEASE_VERSION }} --package @qiwi/multi-semantic-release multi-semantic-release
19 changes: 19 additions & 0 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Production deploy

on:
push:
branches: [dev]

jobs:
validate:
name: Validate
uses: ./.github/workflows/validate.yaml
with:
environment: staging

release:
name: Release
needs: [validate]
uses: ./.github/workflows/semantic-release.yaml
with:
environment: staging
38 changes: 7 additions & 31 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Validate

on:
pull_request:
types: [opened, synchronize]
workflow_call:
inputs:
environment:
description: The environment name value. One of staging or production.
required: true
type: string

env:
TURBO_CACHE_DIR: .turbo
Expand All @@ -22,17 +26,10 @@ jobs:
with:
cache: npm
node-version: 18
- name: Setup Turbo cache
uses: actions/cache@v3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm clean-install
- name: Run Commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: npx commitlint --from=origin/main
lint:
name: 💅 Lint
runs-on: ubuntu-latest
Expand All @@ -46,13 +43,6 @@ jobs:
with:
cache: npm
node-version: 18
- name: Setup Turbo cache
uses: actions/cache@v3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm clean-install
- name: Run ESLint
Expand All @@ -70,13 +60,6 @@ jobs:
with:
cache: npm
node-version: 18
- name: Setup Turbo cache
uses: actions/cache@v3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm clean-install
- name: Run test
Expand All @@ -92,13 +75,6 @@ jobs:
with:
cache: npm
node-version: 18
- name: Setup Turbo cache
uses: actions/cache@v3
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: npm clean-install
- name: Run build scripts
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,3 @@ Icon

## Turbo repo
.turbo

# Sandbox
./playground/**/*
7 changes: 0 additions & 7 deletions .markdownlint.jsonc

This file was deleted.

7 changes: 0 additions & 7 deletions .multi-releaserc.json

This file was deleted.

2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

14 changes: 6 additions & 8 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"branches": [
"main",
"dev"
{
"name": "dev",
"prerelease": true
}
],
"debug": true,
"noCi": true,
"repositoryUrl": "git@github.com:remix-pwa/monorepo",
"plugins": [
[
Expand Down Expand Up @@ -45,10 +46,7 @@
],
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
"@semantic-release/npm"
],
[
"@semantic-release/github",
Expand All @@ -70,4 +68,4 @@
}
]
]
}
}
22 changes: 0 additions & 22 deletions .unimportedrc.json

This file was deleted.

43 changes: 0 additions & 43 deletions CODE_OF_CONDUCT.md

This file was deleted.

31 changes: 2 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
<h1 align='center'>Remix PWA</h1>
# Remix PWA v3 Hub

[![All Contributors](https://img.shields.io/github/all-contributors/remix-pwa/monorepo?color=ee8449&style=flat-square)](#contributors)

> 💻 Huge thanks to [Jacob Ebey](https://github.com/jacob-ebey) for the idea and
> [original implementation](https://github.com/jacob-ebey/remix-pwa) of PWA in Remix.
This repository is the home of Remix PWA packages and their respective documentations (version 3 and above).

**Docs are still a work in progress (including the docs site). Contributions are welcome.**

## Contributing

> **WIP**
To contribute to the codebase, simple clone the repository and run `npm run postclone` to install dependencies, build
the packages and run tests.

Ensure that your code passes the tests (add tests when necessary) and linting before submitting a PR.

## Contributors

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->
**Still a heavy work-in-progress.**
15 changes: 0 additions & 15 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
/**
* Accepted types:
*
* build
* chore
* ci
* docs
* feat
* fix
* perf
* refactor
* revert
* style
* test
*/
21 changes: 0 additions & 21 deletions decisions/003-no-client-test.md

This file was deleted.

Loading

0 comments on commit f5cb516

Please sign in to comment.