Skip to content

Commit

Permalink
Merge pull request #56 from Jahia/PIPELINE-66
Browse files Browse the repository at this point in the history
PIPELINE-66 Migrate workflow to github action
  • Loading branch information
Janin-Michel-Mathias authored Aug 30, 2024
2 parents 640665a + 61a2177 commit a4b983c
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 145 deletions.
25 changes: 0 additions & 25 deletions .circleci/.circleci.settings.xml

This file was deleted.

102 changes: 0 additions & 102 deletions .circleci/config.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/on-code-change-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: On code change & merge

on:
pull_request:
push:
branches:
- master

jobs:
build:
name: Build module
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '10.x'
- name: Install & build with yarn
run: |
yarn install
yarn build
test:
name: Run integration tests
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '10.x'
- name: test with yarn
run: |
yarn install
yarn test
20 changes: 20 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: On release
on:
release:
types: [published]

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '10.x'
- name: Publish to npm
run: |
yarn install
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPMJS_PUBLISH_TOKEN }}" > .npmrc
yarn publish --access public
18 changes: 0 additions & 18 deletions .github/workflows/yarn.yml.disabled

This file was deleted.

0 comments on commit a4b983c

Please sign in to comment.