-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable workflows for releases (#393)
- Loading branch information
Showing
6 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
Empty file.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
name: release-please | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
with: | ||
token: ${{secrets.GOOGLEWORKSPACE_BOT_TOKEN}} | ||
release-type: node | ||
package-name: release-please-action | ||
- uses: actions/checkout@v2 | ||
if: ${{ steps.release.outputs.release_created }} | ||
- uses: actions/setup-node@v1 | ||
if: ${{ steps.release.outputs.release_created }} | ||
with: | ||
node-version: 16 | ||
- name: Write test credentials | ||
if: ${{ steps.release.outputs.release_created }} | ||
run: | | ||
echo "${CLASP_CREDENTIALS}" > "${HOME}/.clasprc.json" | ||
env: | ||
CLASP_CREDENTIALS: ${{secrets.LIBRARIES_OWNER_CLASP_TOKEN}} | ||
- name: Depoy scripts | ||
if: ${{ steps.release.outputs.release_created }} | ||
run: | | ||
cd src | ||
npx @google/clasp push | ||
MESSAGE=$(git log -1 --pretty=%B) npx @google/clasp version ${MESSAGE} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: [pull_request] | ||
name: Update dist folder | ||
jobs: | ||
update-dist-src: | ||
if: "${{ contains(github.event.pull_request.labels.*.name, 'autorelease: pending') }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
token: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Update dist and doc folders | ||
run: | | ||
npm run dist | ||
npm run docs | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "chore: Update dist/ and docs/ directories" | ||
commit_user_name: Google Workspace Bot | ||
commit_user_email: googleworkspace-bot@google.com | ||
commit_author: Google Workspace Bot <googleworkspace-bot@google.com> |
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