Skip to content

Commit

Permalink
feat: Remove unnecessary files from package (#20)
Browse files Browse the repository at this point in the history
* feat: Remove unnecessary files from package

* update pipeline
  • Loading branch information
joeyguerra authored Oct 1, 2023
1 parent f583ad4 commit 5f0f139
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/build.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build and release pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts/*']
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
test:
name: Fast Tests
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
node-version: ['lts/*']
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
release:
needs: [build, test]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts/*']
if: github.ref == 'refs/heads/main' && ${{ success() }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.nyc_output
coverage
node_modules
.DS_Store
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"url": "https://github.com/hubotio/hubot-rules/issues"
},
"main": "index.js",
"files": [
"index.js",
"src"
],
"scripts": {
"pretest": "standard",
"test": "node --test",
Expand Down

0 comments on commit 5f0f139

Please sign in to comment.