blob: 3bd3e8c86155a22ff36a57ec7fdebbe39bf3b6cd [file] [log] [blame]
name: no-response-publish
# Declare default permissions as read only.
permissions: read-all
on:
release:
types: [published, edited]
branches:
- main
paths:
- 'gh_actions/third_party/no-response/**'
- '.github/workflows/no-response_test.yaml'
- '.github/workflows/no-response_publish.yaml'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.repository == 'flutter/cocoon' }}
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
with:
ref: ${{ github.event.release.tag_name }}
sparse-checkout: 'gh_actions/third_party/no-response'
sparse-checkout-cone-mode: false
- name: move_package_to_root
run: |
mv -f gh_actions/third_party/no-response/{.[!.],}* ./
rm -rf gh_actions
- name: ls
run: ls -la
- name: npm_ci
run: npm ci
- name: npm_run_build
run: npm run build
- uses: JasonEtco/build-and-tag-action@dd5e4991048c325f6d85b4155e586fc211c644da
env:
GITHUB_TOKEN: ${{ secrets.FLUTTERGITHUBBOT_TOKEN }}