Prepublish for release test #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepublish for release test | |
on: | |
workflow_dispatch: | |
jobs: | |
prerelease: | |
runs-on: ubuntu-latest | |
environment: | |
name: dev | |
url: https://www.npmjs.com/package/junit2json | |
permissions: | |
contents: write | |
id-token: write | |
if: github.event_name == 'workflow_dispatch' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: earthly/actions-setup@v1.0.13 | |
with: | |
version: latest | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup git config | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
# npm publish and push updated package.json | |
- name: PrePublish | |
run: | | |
npm run release:prepublish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- name: Commit and push changes | |
run: | | |
git add package*.json | |
git commit -m "debug: npm run release:prepublish" | |
git push |