Skip to content

Commit

Permalink
chore: cleanup betabuild.yml
Browse files Browse the repository at this point in the history
Removed comments that merely explain the syntax (likely leftovers from an example file)
I assume they were not left in intentionally because none of the other CI files have them
  • Loading branch information
mart3323 committed Nov 18, 2022
1 parent 3163495 commit 36aa048
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/betabuild.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
# This is a basic workflow to help you get started with Actions

name: Build Beta

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: push

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
outputs:
artifact_name: ${{ steps.fname.outputs.result }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/github-script@v2
Expand Down Expand Up @@ -49,6 +40,7 @@ jobs:
name: ${{ steps.fname.outputs.result }}
path: ./dist/**/*


publish_npm:
runs-on: ubuntu-latest
needs:
Expand All @@ -73,6 +65,13 @@ jobs:
result-encoding: string
script: return process.env.GITHUB_SHA.substring(0, 7);

# The types .d.ts file normally has a version number in it
# This is useful for people using the file directly so they can download multiple versions and keep track of which one is which
# But for the npm package, it's easier to rename it to be consistent than to dynamically edit the package.json and tsconfig.json
- name: Remove version number from .d.ts file
run:
mv dist/typescript/headers/JsMacros-*.d.ts dist/typescript/headers/JsMacros.d.ts

- name: Publish to node
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 36aa048

Please sign in to comment.