Skip to content

Commit

Permalink
🔧 Change to build workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasipavankumar authored Dec 27, 2021
1 parent e54c680 commit 68cd490
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/publish.yaml → .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
name: Publish package to GitHub Packages
name: Build Binaries for JSCrates

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'

- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: chmod +x build.sh
- run: build.sh

- uses: actions/upload-artifact@v2
with:
name: binaries
path: bin/

0 comments on commit 68cd490

Please sign in to comment.