Skip to content

Commit

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

* update readme
  • Loading branch information
joeyguerra committed Oct 1, 2023
1 parent b15d716 commit 14bf2f1
Show file tree
Hide file tree
Showing 5 changed files with 1,815 additions and 8,560 deletions.
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
39 changes: 0 additions & 39 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Build Status](https://github.com/hubotio/hubot-diagnostics/actions/workflows/release.yml/badge.svg)
![Build Status](https://github.com/hubotio/hubot-diagnostics/actions/workflows/pipeline.yml/badge.svg)

# hubot-diagnostics

Expand Down

0 comments on commit 14bf2f1

Please sign in to comment.