GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: use semantic-release · SnoopyMod/scratch-blocks@acdbcb2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • deploy.yml
  • package-lock.json
  • package.json
  • release.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/deploy.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/deploy.yml
+10-26Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: build-scratch-blocks
2-
on:
3-
push:
4-
branches: [master, develop, beta, hotfix/*]
2+
on:
3+
push: # Runs whenever a commit is pushed to the repository
4+
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
55
jobs:
66
setup:
77
runs-on: ubuntu-latest
88
env:
99
JVM_OPTS: -Xmx3200m
10-
DETECT_CHROMEDRIVER_VERSION: true
10+
DETECT_CHROMEDRIVER_VERSION: true
1111
PROJECT_PATH: ./scratch-blocks
1212
steps:
1313
- uses: actions/checkout@v3
@@ -16,7 +16,7 @@ jobs:
1616
sudo apt-get update
1717
sudo apt-get install -y libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2
1818
- name: Check Python version
19-
run: python --version
19+
run: python --version
2020
- name: Setup Java
2121
uses: actions/setup-java@v3
2222
with:
@@ -50,24 +50,8 @@ jobs:
5050
publish_dir: ./gh-pages
5151
full_commit_message: "Build for ${{ github.sha }} ${{ github.event.head_commit.message }}"
5252
enable_jekyll: true
53-
- name: Deploy to npm
54-
if: (github.ref == 'refs/heads/master') || (github.ref == 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/heads/beta')
55-
run: |
56-
export RELEASE_VERSION="0.2.0-prerelease.$(date +'%Y%m%d%H%M%S')"
57-
if [[ "${{contains(github.ref, 'hotfix')}} ]]; then
58-
export NPM_TAG=hotfix
59-
elif [[ "${{contains(github.ref, 'beta')}} ]]; then
60-
export NPM_TAG=beta
61-
else
62-
export NPM_TAG=latest
63-
fi
64-
echo "Deploying version $RELEASE_VERSION to $NPM_TAG"
65-
npm --no-git-tag-version version $RELEASE_VERSION
66-
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
67-
npm publish --tag $NPM_TAG
68-
if npm info | grep -q $RELEASE_VERSION; then
69-
git tag $RELEASE_VERSION
70-
git push \
71-
https://${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git \
72-
$RELEASE_VERSION
73-
fi
53+
- name: Run semantic-release
54+
env:
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
run: npx --no -- semantic-release

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.