Skip to content

Commit

Permalink
fix: Enable CI release
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooney committed Dec 16, 2020
1 parent 73f6058 commit 46a0012
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,37 @@ jobs:

- run: npm run build

# release:
# runs-on: ubuntu-latest
# needs:
# - test
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
# steps:
# - uses: actions/checkout@v2
# with:
# # Pulls all commits (needed for semantic release to correctly version)
# # See https://github.com/semantic-release/semantic-release/issues/1526
# fetch-depth: "0"
# persist-credentials: false
release:
runs-on: ubuntu-latest
needs:
- test
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
steps:
- uses: actions/checkout@v2
with:
# Pulls all commits (needed for semantic release to correctly version)
# See https://github.com/semantic-release/semantic-release/issues/1526
fetch-depth: "0"
persist-credentials: false

# # Pulls all tags (needed for semantic release to correctly version)
# - name: Fetch git tags
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
# Pulls all tags (needed for semantic release to correctly version)
- name: Fetch git tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

# - name: Use Node.js 14
# uses: actions/setup-node@v1
# with:
# node-version: 14.x
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 14.x

# - run: npm install
- run: npm install

# - run: npm run build
- run: npm run build

# - run: cp LICENSE package.json README.md build
- run: cp LICENSE package.json README.md build

# - name: Release 🚀
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release
# working-directory: ./build
- name: Release 🚀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
working-directory: ./build
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@geocortex/workflow-activities-fme",
"private": true,
"version": "0.0.0-semantically-released",
"description": "FME activities for Geocortex Workflow",
"repository": {
Expand Down

0 comments on commit 46a0012

Please sign in to comment.