mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Merge branch 'dev' into releases/v3
This commit is contained in:
commit
2055e89d83
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -16,11 +16,19 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '10.15.1'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
|
- name: Install Yarn
|
||||||
|
run: npm install -g yarn
|
||||||
|
|
||||||
- name: Install and Test
|
- name: Install and Test
|
||||||
run: |
|
run: |
|
||||||
npm install
|
yarn install
|
||||||
npm run-script lint
|
yarn lint
|
||||||
npm run-script test
|
yarn test
|
||||||
|
|
||||||
- name: Uploade CodeCov Report
|
- name: Uploade CodeCov Report
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
|
@ -29,6 +29,7 @@ Comment out the following in distribution branches:
|
|||||||
|
|
||||||
```
|
```
|
||||||
# node_modules/
|
# node_modules/
|
||||||
|
# lib/
|
||||||
```
|
```
|
||||||
|
|
||||||
Build the project:
|
Build the project:
|
||||||
@ -44,7 +45,7 @@ $ git checkout -b branchnamehere
|
|||||||
$ git commit -a -m "prod dependencies"
|
$ git commit -a -m "prod dependencies"
|
||||||
```
|
```
|
||||||
|
|
||||||
The `node_modules` folder should _not_ be included when making a pull request. These are only required for GitHub Actions when it consumes the distribution branch, the `dev` branch of the project should be free from any dependencies or lib files.
|
The `node_modules` and `lib` folders should _not_ be included when making a pull request. These are only required for GitHub Actions when it consumes the distribution branch, the `dev` branch of the project should be free from any dependencies or lib files.
|
||||||
|
|
||||||
## Resources 💡
|
## Resources 💡
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ run({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information regarding the [action interface please click here](https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/constants.ts#L7). You can find the npm listing for the module [here](https://www.npmjs.com/package/github-pages-deploy-action).
|
For more information regarding the [action interface please click here](https://github.com/JamesIves/github-pages-deploy-action/blob/dev/src/constants.ts#L7). You can find the npm registry listing for the module [here](https://www.npmjs.com/package/@jamesives/github-pages-deploy-action), and the GitHub registry listing [here](https://github.com/JamesIves/github-pages-deploy-action/packages/229985).
|
||||||
|
|
||||||
## Configuration 📁
|
## Configuration 📁
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "@jamesives/github-pages-deploy-action",
|
"name": "@jamesives/github-pages-deploy-action",
|
||||||
"description": "GitHub action for building a project and deploying it to GitHub pages.",
|
"description": "GitHub action for building a project and deploying it to GitHub pages.",
|
||||||
"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)",
|
"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)",
|
||||||
"version": "3.5.1",
|
"version": "3.5.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "lib/lib.js",
|
"main": "lib/lib.js",
|
||||||
"types": "lib/lib.d.ts",
|
"types": "lib/lib.d.ts",
|
||||||
|
@ -24,7 +24,7 @@ export async function init(action: ActionInterface): Promise<void | Error> {
|
|||||||
`git remote add origin ${action.repositoryPath}`,
|
`git remote add origin ${action.repositoryPath}`,
|
||||||
action.workspace
|
action.workspace
|
||||||
)
|
)
|
||||||
await execute(`git fetch`, action.workspace)
|
await execute(`git fetch --no-recurse-submodules`, action.workspace)
|
||||||
|
|
||||||
info('Git configured… 🔧')
|
info('Git configured… 🔧')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user