Skip to content

Commit

Permalink
fix: reanable release step
Browse files Browse the repository at this point in the history
  • Loading branch information
samblacklock committed Jul 22, 2024
1 parent 31f5084 commit 93b7ef7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,26 @@ jobs:
with:
files: test-results/**/*.xml

# release:
# needs: [lint, build, test]
# runs-on: ubuntu-20.04
# if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELASTICPATH }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: '18'
# cache: 'yarn'
# - name: Download build artifacts
# uses: actions/download-artifact@v3
# with:
# name: ${{ github.event.repository.name }}-${{ github.sha }}-${{ github.run_id }}-bundles
# path: dist
# - name: Release, publish package
# run: |
# yarn install
# npx semantic-release
release:
needs: [lint, build, test]
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELASTICPATH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repository code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}-${{ github.run_id }}-bundles
path: dist
- name: Release, publish package
run: |
yarn install
npx semantic-release
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@elasticpath/sdk",
"description": "SDK for the ElasticPath eCommerce API",
"name": "@elasticpath/js-sdk",
"description": "SDK for the Elastic Path eCommerce API",
"version": "0.0.0-semantic-release",
"homepage": "https://github.com/elasticpath/js-sdk",
"author": "ElasticPath (https://elasticpath.com/)",
"author": "Elastic Path (https://elasticpath.com/)",
"files": [
"dist/**"
],
Expand Down

0 comments on commit 93b7ef7

Please sign in to comment.