Skip to content

Commit

Permalink
Merge pull request #750 from dpc-sdp/feature/github-release
Browse files Browse the repository at this point in the history
ci: fix Github release workflow steps
  • Loading branch information
dylankelly authored Aug 8, 2023
2 parents b59d4db + af44d7f commit cc4c65e
Show file tree
Hide file tree
Showing 22 changed files with 49 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,19 @@ jobs:
- name: Install Node
uses: actions/setup-node@v3
with:
registry-url: 'https://npm.pkg.github.com'
node-version: 18
cache: 'pnpm'
scope: '@dpc-sdp'
- name: Install Dependencies
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile
- name: Publish canary build to @next tag
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm config set access public
npm set //npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}
pnpm config set access public
pnpm release:publish-next --yes
Update_Reference:
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- test-release
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -23,11 +24,29 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.2
run_install: false
- name: Install Node
uses: actions/setup-node@v3
with:
registry-url: 'https://npm.pkg.github.com'
node-version: 18
cache: 'pnpm'
scope: '@dpc-sdp'
- name: Install Dependencies
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: pnpm install --frozen-lockfile
- name: Create changelog and GitHub release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm run release:changelog
- name: Publish semantic release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm config set access public
npm set //npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}
pnpm release:publish --yes
pnpm config set access public
pnpm run release:publish --yes
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"preinstall": "npx only-allow pnpm",
"release": "pnpm release:version && pnpm release:changelog",
"release:version": "lerna version --force-publish --no-changelog --no-git-tag-version --no-push",
"release:changelog": "changelogen --bump && changelogen gh release",
"release:changelog": "changelogen --bump --release --push && changelogen gh release",
"release:publish-alpha": "lerna publish --canary minor --preid alpha --dist-tag alpha --force-publish",
"release:publish-next": "lerna publish --canary minor --preid next --dist-tag next --force-publish",
"release:publish": "lerna publish from-git",
"release:publish": "lerna publish from-package",
"lint": "eslint . --ext .ts,.vue && stylelint 'packages/ripple-ui-core/**/*.css'",
"test:unit": "jest --colors --runInBand",
"test:components-core": "pnpm -F @dpc-sdp/ripple-ui-core test:components",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config-ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "ESLint config for Ripple projects",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "index.js",
"exports": {
".": "./index.js"
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt-ripple-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./nuxt.config.ts",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"exports": {
".": "./nuxt.config.ts",
"./events": "./lib/index.ts"
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt-ripple-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A CLI for simplifying common setup and scaffolding tasks",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./dist/index.js",
"scripts": {
"nuxt-ripple": "node ./dist/commands/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt-ripple-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./nuxt.config.ts",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"exports": {
".": "./nuxt.config.ts",
"./utils": "./utilities/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt-ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./nuxt.config.ts",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"exports": {
".": "./nuxt.config.ts",
"./mapping": "./mapping/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "2.0.0",
"license": "Apache-2.0",
"private": true,
"repository": "https://github.com/dpc-sdp/ripple-framework",
"scripts": {
"start": "storybook dev -p 6006",
"static:build": "storybook build",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"license": "Apache-2.0",
"type": "module",
"main": "./dist/config/index.js",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"exports": {
".": "./dist/config/index.js",
"./step_definitions": "./step_definitions/index.ts"
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple API endpoints for Tide Drupal backend",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./types.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "2.0.0",
"license": "Apache-2.0",
"main": "./nuxt.config.ts",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"exports": {
".": "./nuxt.config.ts",
"./mapping": "./mapping/index.ts"
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-grant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple mappings and components for Tide Grant Content type",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./nuxt.config.ts",
"exports": {
".": "./nuxt.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-landing-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple mappings and components for Tide landing-page Content type",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./nuxt.config.ts",
"exports": {
".": "./nuxt.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-media/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple mappings and components for Tide media",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./nuxt.config.ts",
"exports": {
".": "./nuxt.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-news/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple mappings and components for Tide News content type",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./nuxt.config.ts",
"exports": {
".": "./nuxt.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-publication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple mappings and components for Tide Publication Content type",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./nuxt.config.ts",
"exports": {
".": "./nuxt.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple search UI and services for connecting to Tide search",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./nuxt.config.ts",
"exports": {
".": "./nuxt.config.ts"
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-tide-topic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "@dpc-sdp/ripple-tide-topic",
"description": "Ripple mappings and components for Tide topics and tags",
"main": "./nuxt.config.ts",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"exports": {
".": "./nuxt.config.ts",
"./mapping": "./mapping/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-ui-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Ripple UI Core component library",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"files": [
"dist",
"src",
Expand Down
1 change: 1 addition & 0 deletions packages/ripple-ui-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A form component library built with Formkit",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "./dist/rpl-forms.umd.js",
"module": "./dist/rpl-forms.es.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/stylelint-config-ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "ESLint config for Ripple projects",
"version": "2.0.0",
"license": "Apache-2.0",
"repository": "https://github.com/dpc-sdp/ripple-framework",
"main": "index.js",
"exports": {
".": "./index.js"
Expand Down

0 comments on commit cc4c65e

Please sign in to comment.