diff --git a/.github/workflows/rollingversions-dry-run.yml b/.github/workflows/rollingversions-dry-run.yml new file mode 100644 index 000000000..752b0b6f1 --- /dev/null +++ b/.github/workflows/rollingversions-dry-run.yml @@ -0,0 +1,21 @@ +name: Publish Dry Run + +on: + push: + branches: + - master + +jobs: + publish-dry-run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12.x + registry-url: 'https://registry.npmjs.org' + - run: yarn install --frozen-lockfile + - run: npx rollingversions publish --dry-run + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/rollingversions.yml b/.github/workflows/rollingversions.yml index fe688f79d..7144b1c8a 100644 --- a/.github/workflows/rollingversions.yml +++ b/.github/workflows/rollingversions.yml @@ -17,17 +17,21 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: yarn install --forzen-lockfile + - run: yarn install --frozen-lockfile - run: yarn prettier:check - run: yarn test publish: runs-on: ubuntu-latest + needs: test steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12.x - - run: yarn install --forzen-lockfile - - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + registry-url: 'https://registry.npmjs.org' + - run: yarn install --frozen-lockfile - run: npx rollingversions publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0dcf9c96a..396e1a0bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,6 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: yarn install --forzen-lockfile + - run: yarn install --frozen-lockfile - run: yarn prettier:check - run: yarn test diff --git a/README.md b/README.md index 779295b31..9465b9eef 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,19 @@ Full documentation is at [pugjs.org](https://pugjs.org/) - Pug is a high-performance template engine heavily influenced by [Haml](http://haml.info/) - and implemented with JavaScript for [Node.js](http://nodejs.org) and browsers. For bug reports, - feature requests and questions, [open an issue](https://github.com/pugjs/pug/issues/new). - For discussion join the [chat room](https://gitter.im/pugjs/pug). +Pug is a high-performance template engine heavily influenced by [Haml](http://haml.info/) +and implemented with JavaScript for [Node.js](http://nodejs.org) and browsers. For bug reports, +feature requests and questions, [open an issue](https://github.com/pugjs/pug/issues/new). +For discussion join the [chat room](https://gitter.im/pugjs/pug). - You can test drive Pug online [here](https://pugjs.org/). +You can test drive Pug online [here](https://pugjs.org/). - [Professionally supported pug is now available](https://tidelift.com/subscription/pkg/npm-pug?utm_source=npm-pug&utm_medium=referral&utm_campaign=readme) - - [![Build Status](https://img.shields.io/travis/pugjs/pug/master.svg?style=flat)](https://travis-ci.org/pugjs/pug) - [![Coverage Status](https://img.shields.io/coveralls/pugjs/pug/master.svg?style=flat)](https://coveralls.io/r/pugjs/pug?branch=master) - [![NPM version](https://img.shields.io/npm/v/pug.svg?style=flat)](https://www.npmjs.com/package/pug) - [![Join Gitter Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat)](https://gitter.im/pugjs/pug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![OpenCollective](https://opencollective.com/pug/backers/badge.svg)](#backers) -[![OpenCollective](https://opencollective.com/pug/sponsors/badge.svg)](#sponsors) +[Professionally supported pug is now available](https://tidelift.com/subscription/pkg/npm-pug?utm_source=npm-pug&utm_medium=referral&utm_campaign=readme) + +[![Build Status](https://img.shields.io/github/workflow/status/pugjs/pug/Test/master?style=for-the-badge)](https://github.com/pugjs/pug/actions?query=workflow%3ATest+branch%3Amaster) +[![Rolling Versions](https://img.shields.io/badge/Rolling%20Versions-Enabled-brightgreen?style=for-the-badge)](https://rollingversions.com/YOUR_GITHUB_LOGIN/YOUR_REPOSITORY_NAME) +[![NPM version](https://img.shields.io/npm/v/pug?style=for-the-badge)](https://www.npmjs.com/package/pug) +[![Join Gitter Chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=for-the-badge)](https://gitter.im/pugjs/pug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ### Dependency Status diff --git a/package.json b/package.json index c2deaae5b..ba40c0720 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "pug-monorepo", "private": true, + "@rollingversions/ignore": true, "workspaces": [ "packages/*" ], @@ -16,7 +17,8 @@ "scripts": { "prettier:check": "prettier --ignore-path .gitignore --list-different './**/*.js'", "format": "prettier --ignore-path .gitignore --write './**/*.js'", - "pretest": "wsrun --stages --exclude-missing --fast-exit --collect-logs build", + "build": "wsrun --stages --exclude-missing --fast-exit --collect-logs build", + "pretest": "yarn build", "test": "jest", "coverage": "jest --coverage", "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",