Skip to content

Commit

Permalink
[auto]
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 24, 2020
1 parent ea703c4 commit 174cb9c
Show file tree
Hide file tree
Showing 10 changed files with 9,634 additions and 451 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

50 changes: 0 additions & 50 deletions README.md

This file was deleted.

5 changes: 1 addition & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Release JavaScript GitHub Action
description: There is no need to commit node_modules.

branding:
icon: git-branch
color: white

inputs:
release-branch:
description: The name of branch to push compiled file.
required: true
release-tags:
description: The names of the tag to attach to the commit of the compiled file.
required: false

runs:
using: node12
main: index.js
main: dist/index.js
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module');
const source = readFileSync(__dirname + '/index.js.cache.js', 'utf-8');
const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(__dirname + '/index.js.cache');
const script = new Script(wrap(source), cachedData ? { cachedData } : {});
(script.runInThisContext())(exports, require, module, __filename, __dirname);
if (cachedData) process.on('exit', () => { try { writeFileSync(__dirname + '/index.js.cache', script.createCachedData()); } catch(e) {} });
Binary file added dist/index.js.cache
Binary file not shown.
Loading

0 comments on commit 174cb9c

Please sign in to comment.