Skip to content

Commit

Permalink
Introduce Build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Jul 4, 2023
1 parent 5f12f1a commit ec2141c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"
- run: yarn
- name: Build
run: yarn build
- name: Version
run: yarn version --new-version "${GITHUB_REF:11}" --no-git-tag-version
- run: yarn pub
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ec2141c

Please sign in to comment.