mirror of
https://github.com/tauri-apps/actions-netlify.git
synced 2026-01-31 00:45:22 +01:00
Merge branch 'release/1.2.3'
This commit is contained in:
12
.github/dependabot.yml
vendored
Normal file
12
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
timezone: Asia/Tokyo
|
||||
open-pull-requests-limit: 99
|
||||
reviewers:
|
||||
- nwtgck
|
||||
assignees:
|
||||
- nwtgck
|
||||
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.2.3] - 2021-12-20
|
||||
### Changed
|
||||
* Update dependencies
|
||||
|
||||
## [1.2.2] - 2021-05-08
|
||||
### Fixed
|
||||
* Fix GitHub deployment description
|
||||
@@ -179,7 +183,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
* Deploy to Netlify
|
||||
* Comment on GitHub PR
|
||||
|
||||
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.2.2...HEAD
|
||||
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.2.3...HEAD
|
||||
[1.2.3]: https://github.com/nwtgck/actions-netlify/compare/v1.2.2...v1.2.3
|
||||
[1.2.2]: https://github.com/nwtgck/actions-netlify/compare/v1.2.1...v1.2.2
|
||||
[1.2.1]: https://github.com/nwtgck/actions-netlify/compare/v1.2.0...v1.2.1
|
||||
[1.2.0]: https://github.com/nwtgck/actions-netlify/compare/v1.1.13...v1.2.0
|
||||
|
||||
@@ -62,9 +62,8 @@ describe('defaultInputs', () => {
|
||||
describe('productionBranch', () => {
|
||||
test('it should be a string when specified', () => {
|
||||
withInput('production-branch', 'master', () => {
|
||||
const productionBranch:
|
||||
| string
|
||||
| undefined = defaultInputs.productionBranch()
|
||||
const productionBranch: string | undefined =
|
||||
defaultInputs.productionBranch()
|
||||
expect(productionBranch).toBe('master')
|
||||
})
|
||||
})
|
||||
|
||||
47452
dist/index.js
vendored
47452
dist/index.js
vendored
File diff suppressed because one or more lines are too long
78
dist/thread.js
vendored
78
dist/thread.js
vendored
@@ -1,71 +1,7 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ 417:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = require("crypto");;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 747:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = require("fs");;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = require("worker_threads");;
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __nccwpck_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ var threw = true;
|
||||
/******/ try {
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
|
||||
/******/ threw = false;
|
||||
/******/ } finally {
|
||||
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat */
|
||||
/******/
|
||||
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
||||
(() => {
|
||||
|
||||
const fs = __nccwpck_require__(747);
|
||||
const crypto = __nccwpck_require__(417);
|
||||
const {parentPort} = __nccwpck_require__(13);
|
||||
'use strict';
|
||||
const fs = require('fs');
|
||||
const crypto = require('crypto');
|
||||
const {parentPort} = require('worker_threads');
|
||||
|
||||
const handlers = {
|
||||
hashFile: (algorithm, filePath) => new Promise((resolve, reject) => {
|
||||
@@ -119,9 +55,3 @@ parentPort.on('message', async message => {
|
||||
parentPort.postMessage({id: message.id, error: newError});
|
||||
}
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
module.exports = __webpack_exports__;
|
||||
/******/ })()
|
||||
;
|
||||
2102
package-lock.json
generated
2102
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "actions-netlify",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"private": true,
|
||||
"description": "GitHub Actions for Netlify",
|
||||
"main": "lib/main.js",
|
||||
@@ -24,23 +24,23 @@
|
||||
"author": "Ryo Ota <nwtgck@nwtgck.org> (https://github.com/nwtgck)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.7",
|
||||
"@actions/core": "^1.6.0",
|
||||
"@actions/github": "^4.0.0",
|
||||
"netlify": "^6.1.27"
|
||||
"netlify": "^6.1.29"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^26.0.23",
|
||||
"@types/node": "^12.20.12",
|
||||
"@typescript-eslint/parser": "^4.22.1",
|
||||
"@vercel/ncc": "^0.28.5",
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/node": "^12.20.16",
|
||||
"@typescript-eslint/parser": "^4.28.4",
|
||||
"@vercel/ncc": "^0.33.1",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-github": "^2.0.0",
|
||||
"eslint-plugin-jest": "^24.3.6",
|
||||
"eslint-plugin-jest": "^24.4.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-circus": "^26.6.3",
|
||||
"jest-circus": "^27.4.5",
|
||||
"js-yaml": "^4.1.0",
|
||||
"prettier": "^2.2.1",
|
||||
"prettier": "^2.5.1",
|
||||
"ts-jest": "^26.5.6",
|
||||
"typescript": "^4.2.4"
|
||||
"typescript": "^4.3.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,8 +64,9 @@ async function createGitHubDeployment(
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
||||
deployment_id: (deployment as OctokitResponse<ReposCreateDeploymentResponseData>)
|
||||
.data.id
|
||||
deployment_id: (
|
||||
deployment as OctokitResponse<ReposCreateDeploymentResponseData>
|
||||
).data.id
|
||||
})
|
||||
}
|
||||
|
||||
@@ -88,7 +89,8 @@ export async function run(inputs: Inputs): Promise<void> {
|
||||
const productionBranch: string | undefined = inputs.productionBranch()
|
||||
const enablePullRequestComment: boolean = inputs.enablePullRequestComment()
|
||||
const enableCommitComment: boolean = inputs.enableCommitComment()
|
||||
const overwritesPullRequestComment: boolean = inputs.overwritesPullRequestComment()
|
||||
const overwritesPullRequestComment: boolean =
|
||||
inputs.overwritesPullRequestComment()
|
||||
const netlifyConfigPath: string | undefined = inputs.netlifyConfigPath()
|
||||
const alias: string | undefined = inputs.alias()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user