Skip to content

Commit

Permalink
Merge branch 'main' into fix-screen-reader-example
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Nov 20, 2023
2 parents 8e46fce + a18a8b3 commit 2436866
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/dev-releases-for-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- opened
- synchronize

permissions:
contents: write
id-token: write

jobs:
setup:
if: github.event.pull_request.draft == false
Expand Down Expand Up @@ -50,6 +54,7 @@ jobs:
timeout-minutes: 30
permissions:
pull-requests: write
id-token: write
needs:
- setup
strategy:
Expand All @@ -68,12 +73,18 @@ jobs:
node_modules
*/node_modules
key: ${{ runner.os }}-dependency-caching-${{ hashFiles('package.json', '*/package.json') }}
- name: "NPM Identity"
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
npm whoami
- run: npm install
- env:
- name: Version & Publish
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm whoami
npm version prerelease --no-git-tag-version -f --preid dev-$PR_NUMBER-$(date +%Y%m%dT%H%M%S)
npm publish --tag dev
working-directory: ${{ matrix.plugin }}
Expand Down

0 comments on commit 2436866

Please sign in to comment.