Skip to content

Commit

Permalink
Remove core workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
arelra committed May 23, 2023
1 parent 13309b0 commit 9f6d535
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 196 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/beta-release-on-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,63 +82,3 @@ jobs:
body: '🚀 ${{ steps.version.outputs.BETA_VERSION }} published to npm as a beta release'
})
core-release:
name: "@guardian/commercial-core"
runs-on: ubuntu-latest
needs: has-permission
if: github.event.label.name == '[beta] @guardian/commercial-core'
defaults:
run:
working-directory: ./core
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build package
run: yarn build

- name: Grab last version
run: yarn version --new-version $(git tag -l | grep @guardian/commercial-core-\* | sed -E 's|.*([0-9]+\.[0-9]+\.[0-9]+(-beta.[0-9]+)?)|\1|g' | tail -1) --no-git-tag-version

- name: Bump prerelease version
run: yarn version --prerelease --preid beta --no-git-tag-version

- name: Get Version
id: version
run: echo BETA_VERSION=@guardian/commercial-bundle-v$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT

- name: Tag version
run: |
git config user.name github-actions
git config user.email github-actions@users.noreply.github.com
git tag -a ${{ steps.version.outputs.BETA_VERSION }} -m "Release ${{ steps.version.outputs.BETA_VERSION }}"
- name: Push tag
run: git push origin ${{ steps.version.outputs.BETA_VERSION }}

- name: Release
run: |
npm config set _authToken=${{ secrets.NPM_TOKEN }}
npm publish --tag beta
- uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🚀 ${{ steps.version.outputs.BETA_VERSION }} published to npm as a beta release'
})
135 changes: 0 additions & 135 deletions .github/workflows/ci-core.yml

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion .github/workflows/e2e-visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- main
pull_request:
paths:
- core/**
- bundle/**
- e2e/cypress/!(e2e)/**
- e2e/cypress.config.ts
Expand Down

0 comments on commit 9f6d535

Please sign in to comment.