Skip to content

Commit

Permalink
chore: Enable CI on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Jan 28, 2022
1 parent d185af3 commit 88d7159
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "babel-plugin-amd-checker",
"version": "0.0.2",
"description": "Module format checking plugin for Babel usable in both Node.js the web browser environments.",
"author": {
"name": "Ferdinand Prantl",
"email": "[email protected]",
"url": "http://prantl.tk"
},
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/prantlf/babel-plugin-amd-checker/blob/master/LICENSE"
}
],
"homepage": "https://github.com/prantlf/babel-plugin-amd-checker#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/prantlf/babel-plugin-amd-checker.git"
},
"bugs": {
"url": "https://github.com/prantlf/babel-plugin-amd-checker/issues"
},
"engines": {
"node": ">=6"
},
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "eslint index.js"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/github",
{
"failComment": false
}
],
"@semantic-release/git"
]
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"eslint": "^8.5.0"
},
"keywords": [
"babel-plugin",
"module",
"transform",
"babel",
"plugin",
"requirejs",
"browser",
"amd"
]
}
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test or Release

on:
- push
- pull_request

jobs:
test-or-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: '>=6'
run_install: |
- args: [--frozen-lockfile, --no-verify-store-integrity]
- name: Test
run: npm test
- name: Coverage
run: pnpx -y codecov
- name: Publish
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 18
branches: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 88d7159

Please sign in to comment.