forked from feross/buffer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GHA build, rename scope to @evidenceprime (#1)
- Loading branch information
1 parent
b0435d8
commit 7c669c1
Showing
7 changed files
with
49 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]", | ||
|