Skip to content

Commit

Permalink
Merge branch 'feature/gh-action-for-roll20-registry'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxvu committed Oct 13, 2023
2 parents 5e7ed04 + 593155f commit 583de26
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Node.js Build
name: Build and publish package

on: [push]
on:
push:
branches:
- master
- feature/gh-action-for-roll20-registry

jobs:
build:
Expand All @@ -11,13 +15,20 @@ jobs:
node-version: [17.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://npm.pkg.github.com/
# Defaults to the user or organization that owns the workflow file
scope: '@roll20'
- run: yarn install
- run: yarn build
# - run: npm test
env:
CI: true
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "canvas-txt",
"version": "4.1.1",
"name": "@roll20/canvas-txt",
"version": "4.2.0",
"description": "Render multiline textboxes in HTML5 canvas with auto line breaks and better alignment system",
"files": [
"dist"
Expand Down

0 comments on commit 583de26

Please sign in to comment.