Skip to content

Commit

Permalink
Add GHA build, rename scope to @evidenceprime (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekrEP authored Jan 23, 2024
1 parent b0435d8 commit 7c669c1
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 102 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/ci.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
buildAndPublish:
name: Build and publish to NPM (GH)
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
registry-url: https://npm.pkg.github.com
- name: Install dependencies
run: yarn --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: yarn build
- name: Release
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify Google Chat
uses: evidenceprime/google-chat-notifications@master
if: ${{ always() && github.event_name == 'push' }}
with:
title: "Buffer"
subtitle: ${{ github.event.head_commit.message }}
webhookUrl: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
threadKey: QexDHE9oqjI
status: ${{ job.status }}
13 changes: 0 additions & 13 deletions .npmrc.tpl

This file was deleted.

22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

40 changes: 0 additions & 40 deletions azure-pipelines.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ep/buffer",
"name": "@evidenceprime/buffer",
"description": "Node.js Buffer API, for the browser",
"version": "6.0.9",
"version": "6.0.10",
"main": "./buffer.js",
"engines": {
"node": ">=8.0"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ep/buffer",
"name": "@evidenceprime/buffer",
"description": "Node.js Buffer API, for the browser",
"version": "6.0.9",
"version": "6.0.10",
"author": {
"name": "Feross Aboukhadijeh",
"email": "[email protected]",
Expand Down

0 comments on commit 7c669c1

Please sign in to comment.