Skip to content

Commit

Permalink
Release version 5.0.0 (#278)
Browse files Browse the repository at this point in the history
* build: release version 5.0.0

* test: add ember/string deps in ember-try release and >

* build: comment the release job for now as it's broken
  • Loading branch information
BlueCutOfficial authored May 25, 2023
1 parent 147156a commit 967fc13
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 72 deletions.
138 changes: 69 additions & 69 deletions .github/workflows/tag-release-publish.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
# GitHub Actions documentation:
# https://docs.github.com/en/actions

name: Create new tag, create new GitHub release and publish to NPM
# name: Create new tag, create new GitHub release and publish to NPM

on:
workflow_run:
workflows:
- CI
branches:
- master
types:
- completed
# on:
# workflow_run:
# workflows:
# - CI
# branches:
# - master
# types:
# - completed

concurrency:
group: tag-release-publish-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: tag-release-publish-${{ github.ref }}
# cancel-in-progress: true

jobs:
create_git_tag:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Create new tag
runs-on: ubuntu-latest
timeout-minutes: 20
outputs:
new_tag: ${{ steps.detect_then_tag.outputs.tag }}
new_version: ${{ steps.detect_then_tag.outputs.current-version }}
old_version: ${{ steps.detect_then_tag.outputs.previous-version }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
# jobs:
# create_git_tag:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# name: Create new tag
# runs-on: ubuntu-latest
# timeout-minutes: 20
# outputs:
# new_tag: ${{ steps.detect_then_tag.outputs.tag }}
# new_version: ${{ steps.detect_then_tag.outputs.current-version }}
# old_version: ${{ steps.detect_then_tag.outputs.previous-version }}
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# fetch-depth: 2

- name: Detect and tag new version
id: detect_then_tag
uses: salsify/action-detect-and-tag-new-version@v2
# - name: Detect and tag new version
# id: detect_then_tag
# uses: salsify/action-detect-and-tag-new-version@v2

create_github_release:
if: ${{ needs.create_git_tag.outputs.new_tag }}
name: Create new GitHub release
needs: create_git_tag
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: ncipollo/release-action@v1
with:
body: "\
Changelog: \
${{ github.server_url }}/${{ github.repository }}\
/compare/\
v${{ needs.create_git_tag.outputs.old_version }}...v${{ needs.create_git_tag.outputs.new_version }}\
"
name: Release ${{ needs.create_git_tag.outputs.new_tag }}
tag: ${{ needs.create_git_tag.outputs.new_tag }}
# create_github_release:
# if: ${{ needs.create_git_tag.outputs.new_tag }}
# name: Create new GitHub release
# needs: create_git_tag
# runs-on: ubuntu-latest
# timeout-minutes: 20
# steps:
# - uses: ncipollo/release-action@v1
# with:
# body: "\
# Changelog: \
# ${{ github.server_url }}/${{ github.repository }}\
# /compare/\
# v${{ needs.create_git_tag.outputs.old_version }}...v${{ needs.create_git_tag.outputs.new_version }}\
# "
# name: Release ${{ needs.create_git_tag.outputs.new_tag }}
# tag: ${{ needs.create_git_tag.outputs.new_tag }}

publish_npm:
name: Publish to NPM
needs: create_github_release
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v3
# publish_npm:
# name: Publish to NPM
# needs: create_github_release
# runs-on: ubuntu-latest
# timeout-minutes: 20
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16
registry-url: https://registry.npmjs.org
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# cache: 'yarn'
# node-version: 16
# registry-url: https://registry.npmjs.org

- name: Install Dependencies
run: yarn install --frozen-lockfile
working-directory: ember-slugify
# - name: Install Dependencies
# run: yarn install --frozen-lockfile
# working-directory: ember-slugify

- name: Publish to NPM
run: npm publish
working-directory: ember-slugify
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
# - name: Publish to NPM
# run: npm publish
# working-directory: ember-slugify
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
2 changes: 1 addition & 1 deletion ember-slugify/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ember-slugify",
"description": "Library to slugify your strings within Ember.",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"author": {
"name": "Dazzling Fugu",
Expand Down
3 changes: 3 additions & 0 deletions test-app/config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': await getChannelURL('release'),
'@ember/string': '^3.1.1',
},
},
},
Expand All @@ -36,6 +37,7 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': await getChannelURL('beta'),
'@ember/string': '^3.1.1',
},
},
},
Expand All @@ -47,6 +49,7 @@ module.exports = async function () {
npm: {
devDependencies: {
'ember-source': await getChannelURL('canary'),
'@ember/string': '^3.1.1',
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions test-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "test-app",
"description": "Library to slugify your strings within Ember.",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"author": {
"name": "Dazzling Fugu",
Expand Down Expand Up @@ -62,7 +62,7 @@
"ember-page-title": "^7.0.0",
"ember-qunit": "^6.0.0",
"ember-resolver": "^9.0.1",
"ember-slugify": "4.0.0",
"ember-slugify": "5.0.0",
"ember-source": "~4.8.0",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^5.0.1",
Expand Down

0 comments on commit 967fc13

Please sign in to comment.