Skip to content

Commit

Permalink
Merge branch 'issue-12-test' into issue-#12
Browse files Browse the repository at this point in the history
  • Loading branch information
mastafit committed Jan 4, 2024
2 parents 402ecd5 + 598ec72 commit cc91e4c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build and Release

on:
push:
branches:
- issue-#12
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

- name: Build the project
run: npm run build

- name: Post Build
run: npm run postbuild

- name: Build Binaries
run: npm run build:binaries

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/seam.cjs
asset_name: seam-cli
asset_content_type: application/octet-stream
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
@seamapi:registry=https://registry.npmjs.org/

0 comments on commit cc91e4c

Please sign in to comment.