Skip to content

Bump prettier from 2.8.7 to 2.8.8 #1645

Bump prettier from 2.8.7 to 2.8.8

Bump prettier from 2.8.7 to 2.8.8 #1645

Workflow file for this run

name: "test"
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: install dependencies
run: |
npm ci
- name: build
run: |
npm run build
npm run package
- name: test
run: |
npm test
check-permission:
name: check permission
runs-on: ubuntu-latest
outputs:
permission: ${{ steps.check.outputs.permission }}
steps:
- id: check
uses: shogo82148/actions-check-permissions@v1
integrated:
name: integrated test
runs-on: ubuntu-latest
needs:
- check-permission
if: needs.check-permission.outputs.permission == 'write'
outputs:
id: ${{ steps.create_release.outputs.id }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: install dependencies
run: |
npm ci
- name: build
run: |
npm run build
npm run package
- name: Create Release
id: create_release
uses: ./
with:
tag_name: test-${{ github.run_id }}
release_name: Test for ${{ github.run_id }}
prerelease: true
commitish: ff485f94581bff86f6105c0e1b1c32f1ab46c9b9 # on https://github.com/shogo82148/actions-create-release/releases/tag/v1.3.1
body: |
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
discussion_category_name: "CI: Integration testing"
# generate release notes only on push events
# because GitHub fails to generate the notes on merged commits.
generate_release_notes: ${{ github.event_name == 'push' }}
cleanup:
if: always()
name: cleanup
runs-on: ubuntu-latest
needs:
- integrated
steps:
- name: cleanup
run: |
curl -XDELETE -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" \
"$GITHUB_API_URL/repos/${{ github.repository }}/releases/${{ needs.integrated.outputs.id }}"
curl -XDELETE -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" \
"$GITHUB_API_URL/repos/${{ github.repository }}/git/refs/tags/test-${{ github.run_id }}"
if: always()
env:
GITHUB_TOKEN: ${{ github.token }}