Skip to content

Commit

Permalink
Re-enable build script
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Nov 15, 2023
1 parent 90c94aa commit e3de004
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
# name: build
# on:
# push:
# branches:
# - master
# tags:
# - v*
# pull_request:
name: build
on:
push:
branches:
- master
tags:
- v*
pull_request:

# jobs:
# ci:
# runs-on: ${{ matrix.os }}
# env:
# #hardcode the coveralls token...it's not overly important to protect, and github actions won't allow forks to work with coveralls otherwise
# COVERALLS_REPO_TOKEN: "NMGk1IhVG2Ds5VQKiEuXpZE8xftkORa7W"
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# steps:
# - uses: actions/checkout@master
# - uses: actions/setup-node@master
# with:
# node-version: "12.22.7"
# - run: npm ci
# - run: npm run build
# - run: npm run lint
# - run: npm run test
# #- run: npm run publish-coverage
# npm-release:
# #only run this task if a tag starting with 'v' was used to trigger this (i.e. a tagged release)
# if: startsWith(github.ref, 'refs/tags/v')
# needs: ci
# runs-on: ubuntu-latest
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# steps:
# - uses: actions/checkout@master
# - uses: actions/setup-node@master
# with:
# node-version: "10.19.0"
# - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
# - run: npm ci
# - run: npm run build
# #create npm package
# - run: npm pack
jobs:
ci:
runs-on: ${{ matrix.os }}
env:
#hardcode the coveralls token...it's not overly important to protect, and github actions won't allow forks to work with coveralls otherwise
COVERALLS_REPO_TOKEN: "NMGk1IhVG2Ds5VQKiEuXpZE8xftkORa7W"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "12.22.7"
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run test
#- run: npm run publish-coverage
npm-release:
#only run this task if a tag starting with 'v' was used to trigger this (i.e. a tagged release)
if: startsWith(github.ref, 'refs/tags/v')
needs: ci
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "10.19.0"
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
- run: npm ci
- run: npm run build
#create npm package
- run: npm pack

# #create GitHub release
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: ${{ github.ref }}
# draft: false
# prerelease: false #contains(github.ref, '-beta.') == true
#create GitHub release
- name: Create GitHub Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false #contains(github.ref, '-beta.') == true

# #upload package to GitHub release
# - name: Upload GitHub Release Assets
# uses: alexellis/upload-assets@0.2.3
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# asset_paths: '["./*.tgz"]'
#upload package to GitHub release
- name: Upload GitHub Release Assets
uses: alexellis/upload-assets@0.2.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./*.tgz"]'

# #upload to npm
# - run: npm publish
#upload to npm
- run: npm publish

0 comments on commit e3de004

Please sign in to comment.