Skip to content

throwing in release test & some scaffolding #25

throwing in release test & some scaffolding

throwing in release test & some scaffolding #25

Workflow file for this run

name: Scratch Workflow

Check failure on line 1 in .github/workflows/build-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-test.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: env
on:
pull_request:
branches: [ "master" ]
jobs:
env:
NPM_REGISTRY_URL: "https://www.npmjs.com/package/hellosign-embedded"
build:
permissions:
id-token: write # This is required for requesting the JWT
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x] # we should pull this from a common place
steps:
- uses: actions/checkout@v3
- name: Extract version from package.json
uses: sergeysova/jq-action@v2
id: version
with:
cmd: 'jq .version package.json -r'
- name: Check existing releases
uses: cardinalby/git-get-release-action@v1
id: released
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag: "v${{ steps.version.outputs.value }}"
doNotFailIfNotFound: true
- name: Block if found
if: "${{ steps.released.outputs.id }}"
run: |
echo "v${{ steps.version.outputs.value }} has already been released, update project version in package.json to produce beta package."
exit 1
- name: Check beta releases
uses: cardinalby/git-get-release-action@v1
id: released
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag: "v${{ steps.version.outputs.value }}-beta"
doNotFailIfNotFound: true
- name: Alert if found
if: "${{ steps.released.outputs.id }}"
run: |
echo "v${{ steps.version.outputs.value }}-beta exists and will be overwritten."
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# registry-url: ${{ env.NPM_REGISTRY_URL }}
# always-auth: true
# token:
- name: Build
run: |
npm install
npm run build
- name: Test
run: |
npm test
- name: Testing Release
uses: ncipollo/release-action@v1
with:
artifacts: "umd/*.js"
tag: "v${{ steps.version.outputs.value }}-testbeta"
allowUpdates: true
draft: true
generateReleaseNotes: true
makeLatest: false
prerelease: true