Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Aug 12, 2024
1 parent 54ef338 commit 53b170c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/dev-publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Publish Dev Build
on:
workflow_call:
inputs:
secrets:
NPM_TOKEN:
required: true
type: string
TEST_APP_TOKEN:
required: true
type: string
workflow_dispatch:

jobs:
Expand All @@ -17,8 +15,8 @@ jobs:
testing:
name: Feature Testing
uses: ./.github/workflows/feature-testing.yml
with:
TEST_APP_TOKEN: ${{ inputs.TEST_APP_TOKEN }}
secrets:
TEST_APP_TOKEN: ${{ secrets.TEST_APP_TOKEN }}
publish:
runs-on: ubuntu-latest
needs: [lint, testing]
Expand All @@ -41,9 +39,9 @@ jobs:
contents=$(jq --arg version "$v" '.version = $version' package.json) && echo -E "${contents}" > package.json
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ inputs.NPM_TOKEN }}
token: ${{ secrets.NPM_TOKEN }}
tag: dev
- name: Deprecate Old Versions
run: npx -y npm-deprecate
env:
NODE_AUTH_TOKEN: ${{ inputs.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/should-publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
run: |
if ! node scripts/should-publish; then
echo "should-publish=false" >> "$GITHUB_OUTPUT"
else
else
echo "should-publish=true" >> "$GITHUB_OUTPUT"
fi
publish:
needs: [should-publish]
if: needs.should-publish.outputs.check == 'true'
uses: ./.github/workflows/dev-publish.yml
with:
NPM_TOKEN: ${{ input.NPM_TOKEN }}
TEST_APP_TOKEN: ${{ input.TEST_APP_TOKEN }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TEST_APP_TOKEN: ${{ secrets.TEST_APP_TOKEN }}

0 comments on commit 53b170c

Please sign in to comment.