Skip to content

Commit

Permalink
package action with @vercel/ncc (#35)
Browse files Browse the repository at this point in the history
allows us to drop node_modules from git
  • Loading branch information
bobheadxi authored Jun 15, 2021
1 parent 907dac1 commit dd8398c
Show file tree
Hide file tree
Showing 603 changed files with 627 additions and 1,160,620 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build/* linguist-generated
dist/* linguist-generated
18 changes: 18 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# Environment
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'

# Dependencies
# https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm install

# Checks
- run: npm run prettier:check
- run: npm run build:check
91 changes: 1 addition & 90 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,90 +1 @@
__tests__/runner/*

# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/
node_modules
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branding:
color: yellow
runs:
using: node12
main: build/main.js
main: dist/index.js

inputs:
token:
Expand Down
39 changes: 0 additions & 39 deletions build/deactivate.js

This file was deleted.

33 changes: 0 additions & 33 deletions build/lib/context.js

This file was deleted.

39 changes: 0 additions & 39 deletions build/lib/deactivate.js

This file was deleted.

28 changes: 0 additions & 28 deletions build/main.js

This file was deleted.

116 changes: 0 additions & 116 deletions build/steps/steps.js

This file was deleted.

Loading

0 comments on commit dd8398c

Please sign in to comment.