Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: revert release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 22, 2021
1 parent 56326ce commit 09512f2
Showing 1 changed file with 22 additions and 54 deletions.
76 changes: 22 additions & 54 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,28 @@ on:
- master

jobs:
release-please:
release-rc:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.author.name, 'Github Actions')"
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
monorepo-tags: true
# # The logic below handles the npm publication:
# - uses: actions/checkout@v2
# # these if statements ensure that a publication only occurs when
# # a new release is created:
# if: ${{ steps.release.outputs.release_created }}
# - uses: actions/setup-node@v1
# with:
# node-version: 16
# registry-url: 'https://registry.npmjs.org'
# if: ${{ steps.release.outputs.release_created }}
# # if you are using Yarn, substitute the command below with `yarn install --frozen-lockfile`
# - run: |
# npm install
# npm run build
# if: ${{ steps.release.outputs.release_created }}
# - run: npm run release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
# if: ${{ steps.release.outputs.release_created }}

# release-rc:
# runs-on: ubuntu-latest
# if: "!contains(github.event.head_commit.author.name, 'Github Actions')"
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Setup node
# uses: actions/setup-node@v2
# with:
# node-version: 16
# - name: Release
# run: |
# git config --global user.email "actions@github.com"
# git config --global user.name "Github Actions"
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
# npm install
# npm run release:rc
# echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
# npm run docker:rc
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Release
run: |
git config --global user.email "actions@github.com"
git config --global user.name "Github Actions"
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
npm install
npm run release:rc
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
npm run docker:rc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}

0 comments on commit 09512f2

Please sign in to comment.