Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy on published release #508

Merged
merged 255 commits into from
Nov 25, 2021
Merged

Deploy on published release #508

merged 255 commits into from
Nov 25, 2021

Conversation

GaryJones
Copy link
Contributor

As per https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release, the workflow will only fire when we publish a release on GitHub. The released type will only fire for stable releases, and not pre-release releases.

This allows tagging and release of alpha and beta versions, without it automatically pushing to WPORG SVN which then result in sites pulling those in via plugin auto-updates.

pauarge and others added 22 commits November 2, 2021 11:22
* Avoid making duplicate calls on Recommended Widget

* Refactoring constructUrl

* Fixing parsing issues of updated values

* Adding e2e tests

* Adding type fixes

* Improving type fixes

* Revert optional post
* Moving settings page out of class-parsely

* Move print dynamic tracking note

* Fixing hooks

* Fix automated linting issues

* Fix manual linting issues

* Extracting admin warning

* Updating hook to _admin_menu

* Moving admin warning tests

* Fix get method
* e2e tests: fix watch command

Previously it would error as `test-e2e` command didn't exist.

* Update package.json

* Adding e2e interactive command

* Fix padding

Co-authored-by: Pau Argelaguet <[email protected]>
Co-authored-by: Pau Argelaguet <[email protected]>
* Starting namespace add

* Adding namespace to root class

* Working on tests

* Working on UI tests

* Address StructuredData tests

* Explicit WP_User import

* Fix linting issues

* Using fully qualified names on docstrings in StructuredData tests

* Correcting more docstrings

* Fixing warnings on UI tests

* Fix get_options

* Removing warnings on AdminWarningTest

* Fix FBIA tests

* Fix Integrations Test

* Update tests/Integration/Integrations/AmpTest.php

Co-authored-by: Gary Jones <[email protected]>

* Update tests/Integration/Integrations/AmpTest.php

Co-authored-by: Gary Jones <[email protected]>

* Update tests/Integration/Integrations/AmpTest.php

Co-authored-by: Gary Jones <[email protected]>

* Update tests/Integration/Integrations/AmpTest.php

Co-authored-by: Gary Jones <[email protected]>

* Update tests/Integration/Integrations/AmpTest.php

Co-authored-by: Gary Jones <[email protected]>

Co-authored-by: Gary Jones <[email protected]>
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 19.0.0 to 19.1.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/@wordpress/[email protected]/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/scripts)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 5.4.5 to 5.4.6.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/@wordpress/[email protected]/packages/e2e-test-utils/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/e2e-test-utils)

---
updated-dependencies:
- dependency-name: "@wordpress/e2e-test-utils"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pau Argelaguet <[email protected]>
Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 5.4.6 to 5.4.7.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/e2e-test-utils)

---
updated-dependencies:
- dependency-name: "@wordpress/e2e-test-utils"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Moving settings page out of class-parsely

* Move print dynamic tracking note

* Fixing hooks

* Fix automated linting issues

* Fix manual linting issues

* Updating hook to _admin_menu

* Working on settings select

* Formatting data correctly

* Rollback new line

* Reverting label change

* Fix automated linting issues

* Fix linting issues

* Simplifying select

* Removing references to multiple argument

* Displaying public taxonomies only

* Matching id and label of checkbox
* Starting namespace add

* Adding namespace to root class

* Working on tests

* Working on UI tests

* Address StructuredData tests

* Explicit WP_User import

* Fix linting issues

* Using fully qualified names on docstrings in StructuredData tests

* Correcting more docstrings

* Fixing warnings on UI tests

* Fix get_options

* Removing warnings on AdminWarningTest

* Fix FBIA tests

* Fix Integrations Test

* Splitting out tracker code

* Adding tracker test

* Adding additional tests

* Keep moving tests

* Moving constant

* Adding WP_Scripts

* Renaming class to scripts

* Fixing scripts naming

* Fix path

* Making sure script enqueue is clean

* Fix linting issues

* Updating comment

* Updating more comments
Bumps [@wordpress/eslint-plugin](https://github.com/WordPress/gutenberg/tree/HEAD/packages/eslint-plugin) from 9.2.0 to 9.3.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@wordpress/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@wordpress/e2e-test-utils](https://github.com/WordPress/gutenberg/tree/HEAD/packages/e2e-test-utils) from 5.4.7 to 5.4.8.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-test-utils/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/e2e-test-utils)

---
updated-dependencies:
- dependency-name: "@wordpress/e2e-test-utils"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts) from 19.1.0 to 19.2.1.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/[email protected]/packages/scripts)

---
updated-dependencies:
- dependency-name: "@wordpress/scripts"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pau Argelaguet <[email protected]>
* Starting namespace add

* Adding namespace to root class

* Working on tests

* Working on UI tests

* Address StructuredData tests

* Explicit WP_User import

* Fix linting issues

* Using fully qualified names on docstrings in StructuredData tests

* Correcting more docstrings

* Fixing warnings on UI tests

* Fix get_options

* Removing warnings on AdminWarningTest

* Fix FBIA tests

* Fix Integrations Test

* Splitting out tracker code

* Adding tracker test

* Adding additional tests

* Keep moving tests

* Moving constant

* Adding WP_Scripts

* Fixing small issues with scripts class

* Renaming class to scripts

* Fixing scripts naming

* Fix path

* Renaming functions on tests
* Adding a local dev environment

* Adding link to VIP dev-env

* Fix tabs on package.json
* Making class members private

* Fix FBIA tests

* Fix Recommended API tests

* Revert AMP changes

* Using reflection in tests

* Test with hardcoded constant

* Fix test

* Update tests/Integration/Integrations/FacebookInstantArticlesTest.php

Co-authored-by: Gary Jones <[email protected]>

Co-authored-by: Gary Jones <[email protected]>
* Adding Changelog for 3.0

* Finishing up changelog
* Shorter timeout for tests

* Not updating npm each time

* Shorter timeout

* Reverting changes on tests

* Removing custom jest

* Optimizing tests

* Removing explicit timeouts
Co-authored-by: Volodymyr Kolesnykov <[email protected]>
* Changelog: Add more detail for 3.0 release

* Update CHANGELOG.md

Co-authored-by: Pau Argelaguet <[email protected]>
As per https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release, the workflow will only fire when we publish a release on GitHub. The `released` type will only fire for stable releases,  and not pre-release releases. 

This allows tagging and release of alpha and beta versions, without it automatically pushing to WPORG SVN which then result in sites pulling those in via plugin auto-updates.
@GaryJones GaryJones requested a review from a team as a code owner November 25, 2021 18:37
@sjinks
Copy link
Member

sjinks commented Nov 25, 2021

Not related to this PR, but this needs to be fixed:

https://github.com/Parsely/wp-parsely/pull/508/files#diff-28802fbf11c83a2eee09623fb192785e7ca92a3f40602a517c011b947a1822d3R13

      - name: Build # Remove or modify this step as needed
        run: |
          npm install
          npm run build

Consider using npm ci instead of npm install to make sure that you release what you have tested. npm ci installs exactly the same versions as specified in package-lock.json (and makes sure that package-lock.json matches package.json); npm install in some cases can update transitive dependencies.

@pauarge pauarge changed the base branch from develop to trunk November 25, 2021 19:49
@pauarge pauarge merged commit bb80bec into trunk Nov 25, 2021
@pauarge pauarge deleted the fix/deploy-on-published-release branch November 25, 2021 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants